Changeset 2766 for branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment.DataAccess/PluginStoreClasses.designer.cs
- Timestamp:
- 02/08/10 19:14:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment.DataAccess/PluginStoreClasses.designer.cs
r2742 r2766 34 34 partial void UpdateDependency(Dependency instance); 35 35 partial void DeleteDependency(Dependency instance); 36 partial void InsertProductPlugin(ProductPlugin instance); 37 partial void UpdateProductPlugin(ProductPlugin instance); 38 partial void DeleteProductPlugin(ProductPlugin instance); 36 39 partial void InsertPlugin(Plugin instance); 37 40 partial void UpdatePlugin(Plugin instance); … … 126 129 private long _DependencyId; 127 130 128 private EntityRef<Plugin> _Plugin;129 130 private EntityRef<Plugin> _Plugin1;131 132 131 #region Extensibility Method Definitions 133 132 partial void OnLoaded(); … … 142 141 public Dependency() 143 142 { 144 this._Plugin = default(EntityRef<Plugin>);145 this._Plugin1 = default(EntityRef<Plugin>);146 143 OnCreated(); 147 144 } … … 158 155 if ((this._PluginId != value)) 159 156 { 160 if (this._Plugin1.HasLoadedOrAssignedValue)161 {162 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();163 }164 157 this.OnPluginIdChanging(value); 165 158 this.SendPropertyChanging(); … … 182 175 if ((this._DependencyId != value)) 183 176 { 184 if (this._Plugin.HasLoadedOrAssignedValue)185 {186 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();187 }188 177 this.OnDependencyIdChanging(value); 189 178 this.SendPropertyChanging(); … … 195 184 } 196 185 197 [Association(Name="Plugin_Dependency", Storage="_Plugin", ThisKey="DependencyId", OtherKey="Id", IsForeignKey=true)]198 public Plugin Plugin199 {200 get201 {202 return this._Plugin.Entity;203 }204 set205 {206 Plugin previousValue = this._Plugin.Entity;207 if (((previousValue != value)208 || (this._Plugin.HasLoadedOrAssignedValue == false)))209 {210 this.SendPropertyChanging();211 if ((previousValue != null))212 {213 this._Plugin.Entity = null;214 previousValue.Dependencies.Remove(this);215 }216 this._Plugin.Entity = value;217 if ((value != null))218 {219 value.Dependencies.Add(this);220 this._DependencyId = value.Id;221 }222 else223 {224 this._DependencyId = default(long);225 }226 this.SendPropertyChanged("Plugin");227 }228 }229 }230 231 [Association(Name="Plugin_Dependency1", Storage="_Plugin1", ThisKey="PluginId", OtherKey="Id", IsForeignKey=true)]232 public Plugin Plugin1233 {234 get235 {236 return this._Plugin1.Entity;237 }238 set239 {240 Plugin previousValue = this._Plugin1.Entity;241 if (((previousValue != value)242 || (this._Plugin1.HasLoadedOrAssignedValue == false)))243 {244 this.SendPropertyChanging();245 if ((previousValue != null))246 {247 this._Plugin1.Entity = null;248 previousValue.Dependencies1.Remove(this);249 }250 this._Plugin1.Entity = value;251 if ((value != null))252 {253 value.Dependencies1.Add(this);254 this._PluginId = value.Id;255 }256 else257 {258 this._PluginId = default(long);259 }260 this.SendPropertyChanged("Plugin1");261 }262 }263 }264 265 186 public event PropertyChangingEventHandler PropertyChanging; 266 187 … … 285 206 286 207 [Table(Name="dbo.ProductPlugin")] 287 public partial class ProductPlugin 208 public partial class ProductPlugin : INotifyPropertyChanging, INotifyPropertyChanged 288 209 { 289 210 211 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 212 290 213 private long _ProductId; 291 214 292 215 private long _PluginId; 293 216 217 #region Extensibility Method Definitions 218 partial void OnLoaded(); 219 partial void OnValidate(System.Data.Linq.ChangeAction action); 220 partial void OnCreated(); 221 partial void OnProductIdChanging(long value); 222 partial void OnProductIdChanged(); 223 partial void OnPluginIdChanging(long value); 224 partial void OnPluginIdChanged(); 225 #endregion 226 294 227 public ProductPlugin() 295 228 { 296 } 297 298 [Column(Storage="_ProductId", DbType="BigInt NOT NULL")] 229 OnCreated(); 230 } 231 232 [Column(Storage="_ProductId", DbType="BigInt NOT NULL", IsPrimaryKey=true)] 299 233 public long ProductId 300 234 { … … 307 241 if ((this._ProductId != value)) 308 242 { 243 this.OnProductIdChanging(value); 244 this.SendPropertyChanging(); 309 245 this._ProductId = value; 310 } 311 } 312 } 313 314 [Column(Storage="_PluginId", DbType="BigInt NOT NULL")] 246 this.SendPropertyChanged("ProductId"); 247 this.OnProductIdChanged(); 248 } 249 } 250 } 251 252 [Column(Storage="_PluginId", DbType="BigInt NOT NULL", IsPrimaryKey=true)] 315 253 public long PluginId 316 254 { … … 323 261 if ((this._PluginId != value)) 324 262 { 263 this.OnPluginIdChanging(value); 264 this.SendPropertyChanging(); 325 265 this._PluginId = value; 326 } 266 this.SendPropertyChanged("PluginId"); 267 this.OnPluginIdChanged(); 268 } 269 } 270 } 271 272 public event PropertyChangingEventHandler PropertyChanging; 273 274 public event PropertyChangedEventHandler PropertyChanged; 275 276 protected virtual void SendPropertyChanging() 277 { 278 if ((this.PropertyChanging != null)) 279 { 280 this.PropertyChanging(this, emptyChangingEventArgs); 281 } 282 } 283 284 protected virtual void SendPropertyChanged(String propertyName) 285 { 286 if ((this.PropertyChanged != null)) 287 { 288 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 327 289 } 328 290 } … … 340 302 341 303 private string _Version; 342 343 private EntitySet<Dependency> _Dependencies;344 345 private EntitySet<Dependency> _Dependencies1;346 304 347 305 private EntityRef<PluginPackage> _PluginPackage; … … 361 319 public Plugin() 362 320 { 363 this._Dependencies = new EntitySet<Dependency>(new Action<Dependency>(this.attach_Dependencies), new Action<Dependency>(this.detach_Dependencies));364 this._Dependencies1 = new EntitySet<Dependency>(new Action<Dependency>(this.attach_Dependencies1), new Action<Dependency>(this.detach_Dependencies1));365 321 this._PluginPackage = default(EntityRef<PluginPackage>); 366 322 OnCreated(); … … 424 380 this.OnVersionChanged(); 425 381 } 426 }427 }428 429 [Association(Name="Plugin_Dependency", Storage="_Dependencies", ThisKey="Id", OtherKey="DependencyId")]430 public EntitySet<Dependency> Dependencies431 {432 get433 {434 return this._Dependencies;435 }436 set437 {438 this._Dependencies.Assign(value);439 }440 }441 442 [Association(Name="Plugin_Dependency1", Storage="_Dependencies1", ThisKey="Id", OtherKey="PluginId")]443 public EntitySet<Dependency> Dependencies1444 {445 get446 {447 return this._Dependencies1;448 }449 set450 {451 this._Dependencies1.Assign(value);452 382 } 453 383 } … … 500 430 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 501 431 } 502 }503 504 private void attach_Dependencies(Dependency entity)505 {506 this.SendPropertyChanging();507 entity.Plugin = this;508 }509 510 private void detach_Dependencies(Dependency entity)511 {512 this.SendPropertyChanging();513 entity.Plugin = null;514 }515 516 private void attach_Dependencies1(Dependency entity)517 {518 this.SendPropertyChanging();519 entity.Plugin1 = this;520 }521 522 private void detach_Dependencies1(Dependency entity)523 {524 this.SendPropertyChanging();525 entity.Plugin1 = null;526 432 } 527 433 } … … 707 613 } 708 614 709 [Column(Storage="_Id", DbType="BigInt NOT NULL", IsPrimaryKey=true)]615 [Column(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] 710 616 public long Id 711 617 {
Note: See TracChangeset
for help on using the changeset viewer.