Changeset 6723 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs
- Timestamp:
- 09/08/11 14:37:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs
r6721 r6723 49 49 partial void UpdateDowntime(Downtime instance); 50 50 partial void DeleteDowntime(Downtime instance); 51 partial void Insert HiveExperiment(HiveExperimentinstance);52 partial void Update HiveExperiment(HiveExperimentinstance);53 partial void Delete HiveExperiment(HiveExperimentinstance);51 partial void InsertJob(Job instance); 52 partial void UpdateJob(Job instance); 53 partial void DeleteJob(Job instance); 54 54 partial void InsertTaskData(TaskData instance); 55 55 partial void UpdateTaskData(TaskData instance); … … 61 61 partial void UpdateStateLog(StateLog instance); 62 62 partial void DeleteStateLog(StateLog instance); 63 partial void Insert HiveExperimentPermission(HiveExperimentPermission instance);64 partial void Update HiveExperimentPermission(HiveExperimentPermission instance);65 partial void Delete HiveExperimentPermission(HiveExperimentPermission instance);63 partial void InsertJobPermission(JobPermission instance); 64 partial void UpdateJobPermission(JobPermission instance); 65 partial void DeleteJobPermission(JobPermission instance); 66 66 partial void InsertLifecycle(Lifecycle instance); 67 67 partial void UpdateLifecycle(Lifecycle instance); … … 159 159 } 160 160 161 public System.Data.Linq.Table< HiveExperiment> HiveExperiments162 { 163 get 164 { 165 return this.GetTable< HiveExperiment>();161 public System.Data.Linq.Table<Job> Jobs 162 { 163 get 164 { 165 return this.GetTable<Job>(); 166 166 } 167 167 } … … 191 191 } 192 192 193 public System.Data.Linq.Table< HiveExperimentPermission> HiveExperimentPermissions194 { 195 get 196 { 197 return this.GetTable< HiveExperimentPermission>();193 public System.Data.Linq.Table<JobPermission> JobPermissions 194 { 195 get 196 { 197 return this.GetTable<JobPermission>(); 198 198 } 199 199 } … … 1490 1490 private EntityRef<Task> _Job1; 1491 1491 1492 private EntityRef< HiveExperiment> _HiveExperiment;1492 private EntityRef<Job> _HiveExperiment; 1493 1493 1494 1494 #region Extensibility Method Definitions … … 1518 1518 partial void OnCommandChanging(global::HeuristicLab.Services.Hive.DataAccess.Command? value); 1519 1519 partial void OnCommandChanged(); 1520 partial void On HiveExperimentIdChanging(System.Guid value);1521 partial void On HiveExperimentIdChanged();1520 partial void OnJobIdChanging(System.Guid value); 1521 partial void OnJobIdChanged(); 1522 1522 partial void OnIsPrivilegedChanging(bool value); 1523 1523 partial void OnIsPrivilegedChanged(); … … 1532 1532 this._StateLogs = new EntitySet<StateLog>(new Action<StateLog>(this.attach_StateLogs), new Action<StateLog>(this.detach_StateLogs)); 1533 1533 this._Job1 = default(EntityRef<Task>); 1534 this._HiveExperiment = default(EntityRef< HiveExperiment>);1534 this._HiveExperiment = default(EntityRef<Job>); 1535 1535 OnCreated(); 1536 1536 } … … 1761 1761 1762 1762 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HiveExperimentId", DbType="UniqueIdentifier NOT NULL")] 1763 public System.Guid HiveExperimentId1763 public System.Guid JobId 1764 1764 { 1765 1765 get … … 1775 1775 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 1776 1776 } 1777 this.On HiveExperimentIdChanging(value);1777 this.OnJobIdChanging(value); 1778 1778 this.SendPropertyChanging(); 1779 1779 this._HiveExperimentId = value; 1780 this.SendPropertyChanged(" HiveExperimentId");1781 this.On HiveExperimentIdChanged();1780 this.SendPropertyChanged("JobId"); 1781 this.OnJobIdChanged(); 1782 1782 } 1783 1783 } … … 1919 1919 } 1920 1920 1921 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_Task", Storage="_HiveExperiment", ThisKey=" HiveExperimentId", OtherKey="HiveExperimentId", IsForeignKey=true)]1922 public HiveExperiment HiveExperiment1921 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_Task", Storage="_HiveExperiment", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true)] 1922 public Job Job 1923 1923 { 1924 1924 get … … 1928 1928 set 1929 1929 { 1930 HiveExperimentpreviousValue = this._HiveExperiment.Entity;1930 Job previousValue = this._HiveExperiment.Entity; 1931 1931 if (((previousValue != value) 1932 1932 || (this._HiveExperiment.HasLoadedOrAssignedValue == false))) … … 1942 1942 { 1943 1943 value.Tasks.Add(this); 1944 this._HiveExperimentId = value. HiveExperimentId;1944 this._HiveExperimentId = value.JobId; 1945 1945 } 1946 1946 else … … 1948 1948 this._HiveExperimentId = default(System.Guid); 1949 1949 } 1950 this.SendPropertyChanged(" HiveExperiment");1950 this.SendPropertyChanged("Job"); 1951 1951 } 1952 1952 } … … 2269 2269 } 2270 2270 2271 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo. HiveExperiment")]2272 public partial class HiveExperiment: INotifyPropertyChanging, INotifyPropertyChanged2271 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Job")] 2272 public partial class Job : INotifyPropertyChanging, INotifyPropertyChanged 2273 2273 { 2274 2274 … … 2293 2293 private EntitySet<Task> _Jobs; 2294 2294 2295 private EntitySet< HiveExperimentPermission> _HiveExperimentPermissions;2295 private EntitySet<JobPermission> _HiveExperimentPermissions; 2296 2296 2297 2297 #region Extensibility Method Definitions … … 2299 2299 partial void OnValidate(System.Data.Linq.ChangeAction action); 2300 2300 partial void OnCreated(); 2301 partial void On HiveExperimentIdChanging(System.Guid value);2302 partial void On HiveExperimentIdChanged();2301 partial void OnJobIdChanging(System.Guid value); 2302 partial void OnJobIdChanged(); 2303 2303 partial void OnNameChanging(string value); 2304 2304 partial void OnNameChanged(); … … 2317 2317 #endregion 2318 2318 2319 public HiveExperiment()2319 public Job() 2320 2320 { 2321 2321 this._Jobs = new EntitySet<Task>(new Action<Task>(this.attach_Jobs), new Action<Task>(this.detach_Jobs)); 2322 this._HiveExperimentPermissions = new EntitySet< HiveExperimentPermission>(new Action<HiveExperimentPermission>(this.attach_HiveExperimentPermissions), new Action<HiveExperimentPermission>(this.detach_HiveExperimentPermissions));2322 this._HiveExperimentPermissions = new EntitySet<JobPermission>(new Action<JobPermission>(this.attach_HiveExperimentPermissions), new Action<JobPermission>(this.detach_HiveExperimentPermissions)); 2323 2323 OnCreated(); 2324 2324 } 2325 2325 2326 2326 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HiveExperimentId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] 2327 public System.Guid HiveExperimentId2327 public System.Guid JobId 2328 2328 { 2329 2329 get … … 2335 2335 if ((this._HiveExperimentId != value)) 2336 2336 { 2337 this.On HiveExperimentIdChanging(value);2337 this.OnJobIdChanging(value); 2338 2338 this.SendPropertyChanging(); 2339 2339 this._HiveExperimentId = value; 2340 this.SendPropertyChanged(" HiveExperimentId");2341 this.On HiveExperimentIdChanged();2340 this.SendPropertyChanged("JobId"); 2341 this.OnJobIdChanged(); 2342 2342 } 2343 2343 } … … 2484 2484 } 2485 2485 2486 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_Task", Storage="_Jobs", ThisKey=" HiveExperimentId", OtherKey="HiveExperimentId")]2486 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_Task", Storage="_Jobs", ThisKey="JobId", OtherKey="JobId")] 2487 2487 public EntitySet<Task> Tasks 2488 2488 { … … 2497 2497 } 2498 2498 2499 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_HiveExperimentPermission", Storage="_HiveExperimentPermissions", ThisKey=" HiveExperimentId", OtherKey="HiveExperimentId")]2500 public EntitySet< HiveExperimentPermission> HiveExperimentPermissions2499 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_HiveExperimentPermission", Storage="_HiveExperimentPermissions", ThisKey="JobId", OtherKey="JobId")] 2500 public EntitySet<JobPermission> JobPermissions 2501 2501 { 2502 2502 get … … 2533 2533 { 2534 2534 this.SendPropertyChanging(); 2535 entity. HiveExperiment= this;2535 entity.Job = this; 2536 2536 } 2537 2537 … … 2539 2539 { 2540 2540 this.SendPropertyChanging(); 2541 entity. HiveExperiment= null;2542 } 2543 2544 private void attach_HiveExperimentPermissions( HiveExperimentPermission entity)2541 entity.Job = null; 2542 } 2543 2544 private void attach_HiveExperimentPermissions(JobPermission entity) 2545 2545 { 2546 2546 this.SendPropertyChanging(); 2547 entity. HiveExperiment= this;2548 } 2549 2550 private void detach_HiveExperimentPermissions( HiveExperimentPermission entity)2547 entity.Job = this; 2548 } 2549 2550 private void detach_HiveExperimentPermissions(JobPermission entity) 2551 2551 { 2552 2552 this.SendPropertyChanging(); 2553 entity. HiveExperiment= null;2553 entity.Job = null; 2554 2554 } 2555 2555 } … … 3169 3169 } 3170 3170 3171 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo. HiveExperimentPermission")]3172 public partial class HiveExperimentPermission : INotifyPropertyChanging, INotifyPropertyChanged3171 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JobPermission")] 3172 public partial class JobPermission : INotifyPropertyChanging, INotifyPropertyChanged 3173 3173 { 3174 3174 … … 3183 3183 private global::HeuristicLab.Services.Hive.DataAccess.Permission _Permission; 3184 3184 3185 private EntityRef< HiveExperiment> _HiveExperiment;3185 private EntityRef<Job> _HiveExperiment; 3186 3186 3187 3187 #region Extensibility Method Definitions … … 3189 3189 partial void OnValidate(System.Data.Linq.ChangeAction action); 3190 3190 partial void OnCreated(); 3191 partial void On HiveExperimentIdChanging(System.Guid value);3192 partial void On HiveExperimentIdChanged();3191 partial void OnJobIdChanging(System.Guid value); 3192 partial void OnJobIdChanged(); 3193 3193 partial void OnGrantedUserIdChanging(System.Guid value); 3194 3194 partial void OnGrantedUserIdChanged(); … … 3199 3199 #endregion 3200 3200 3201 public HiveExperimentPermission()3202 { 3203 this._HiveExperiment = default(EntityRef< HiveExperiment>);3201 public JobPermission() 3202 { 3203 this._HiveExperiment = default(EntityRef<Job>); 3204 3204 OnCreated(); 3205 3205 } 3206 3206 3207 3207 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HiveExperimentId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 3208 public System.Guid HiveExperimentId3208 public System.Guid JobId 3209 3209 { 3210 3210 get … … 3220 3220 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 3221 3221 } 3222 this.On HiveExperimentIdChanging(value);3222 this.OnJobIdChanging(value); 3223 3223 this.SendPropertyChanging(); 3224 3224 this._HiveExperimentId = value; 3225 this.SendPropertyChanged(" HiveExperimentId");3226 this.On HiveExperimentIdChanged();3225 this.SendPropertyChanged("JobId"); 3226 this.OnJobIdChanged(); 3227 3227 } 3228 3228 } … … 3289 3289 } 3290 3290 3291 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_HiveExperimentPermission", Storage="_HiveExperiment", ThisKey=" HiveExperimentId", OtherKey="HiveExperimentId", IsForeignKey=true)]3292 public HiveExperiment HiveExperiment3291 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="HiveExperiment_HiveExperimentPermission", Storage="_HiveExperiment", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true)] 3292 public Job Job 3293 3293 { 3294 3294 get … … 3298 3298 set 3299 3299 { 3300 HiveExperimentpreviousValue = this._HiveExperiment.Entity;3300 Job previousValue = this._HiveExperiment.Entity; 3301 3301 if (((previousValue != value) 3302 3302 || (this._HiveExperiment.HasLoadedOrAssignedValue == false))) … … 3306 3306 { 3307 3307 this._HiveExperiment.Entity = null; 3308 previousValue. HiveExperimentPermissions.Remove(this);3308 previousValue.JobPermissions.Remove(this); 3309 3309 } 3310 3310 this._HiveExperiment.Entity = value; 3311 3311 if ((value != null)) 3312 3312 { 3313 value. HiveExperimentPermissions.Add(this);3314 this._HiveExperimentId = value. HiveExperimentId;3313 value.JobPermissions.Add(this); 3314 this._HiveExperimentId = value.JobId; 3315 3315 } 3316 3316 else … … 3318 3318 this._HiveExperimentId = default(System.Guid); 3319 3319 } 3320 this.SendPropertyChanged(" HiveExperiment");3320 this.SendPropertyChanged("Job"); 3321 3321 } 3322 3322 }
Note: See TracChangeset
for help on using the changeset viewer.