Changeset 16240 for branches/2915-AbsoluteSymbol/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs
- Timestamp:
- 10/18/18 16:16:31 (6 years ago)
- Location:
- branches/2915-AbsoluteSymbol
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2915-AbsoluteSymbol
- Property svn:mergeinfo changed
-
branches/2915-AbsoluteSymbol/HeuristicLab.Services.Hive.DataAccess
- Property svn:mergeinfo changed
-
branches/2915-AbsoluteSymbol/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs
r12926 r16240 3 3 // <auto-generated> 4 4 // This code was generated by a tool. 5 // Runtime Version:4.0.30319. 342095 // Runtime Version:4.0.30319.42000 6 6 // 7 7 // Changes to this file may cause incorrect behavior and will be lost if … … 31 31 #region Extensibility Method Definitions 32 32 partial void OnCreated(); 33 partial void InsertAssigned Resource(AssignedResource instance);34 partial void UpdateAssigned Resource(AssignedResource instance);35 partial void DeleteAssigned Resource(AssignedResource instance);33 partial void InsertAssignedProjectResource(AssignedProjectResource instance); 34 partial void UpdateAssignedProjectResource(AssignedProjectResource instance); 35 partial void DeleteAssignedProjectResource(AssignedProjectResource instance); 36 36 partial void InsertPlugin(Plugin instance); 37 37 partial void UpdatePlugin(Plugin instance); … … 67 67 partial void UpdateLifecycle(Lifecycle instance); 68 68 partial void DeleteLifecycle(Lifecycle instance); 69 partial void InsertResourcePermission(ResourcePermission instance);70 partial void UpdateResourcePermission(ResourcePermission instance);71 partial void DeleteResourcePermission(ResourcePermission instance);72 69 partial void InsertUserPriority(UserPriority instance); 73 70 partial void UpdateUserPriority(UserPriority instance); … … 91 88 partial void UpdateFactClientInfo(FactClientInfo instance); 92 89 partial void DeleteFactClientInfo(FactClientInfo instance); 90 partial void InsertProject(Project instance); 91 partial void UpdateProject(Project instance); 92 partial void DeleteProject(Project instance); 93 partial void InsertProjectPermission(ProjectPermission instance); 94 partial void UpdateProjectPermission(ProjectPermission instance); 95 partial void DeleteProjectPermission(ProjectPermission instance); 96 partial void InsertAssignedJobResource(AssignedJobResource instance); 97 partial void UpdateAssignedJobResource(AssignedJobResource instance); 98 partial void DeleteAssignedJobResource(AssignedJobResource instance); 99 partial void InsertFactProjectInfo(FactProjectInfo instance); 100 partial void UpdateFactProjectInfo(FactProjectInfo instance); 101 partial void DeleteFactProjectInfo(FactProjectInfo instance); 102 partial void InsertDimProject(DimProject instance); 103 partial void UpdateDimProject(DimProject instance); 104 partial void DeleteDimProject(DimProject instance); 93 105 #endregion 94 95 public HiveDataContext() :96 base(global::HeuristicLab.Services.Hive.DataAccess.Settings.Default.HeuristicLab_Hive_LinqConnectionString, mappingSource)97 {98 OnCreated();99 }100 106 101 107 public HiveDataContext(string connection) : … … 123 129 } 124 130 125 public System.Data.Linq.Table<Assigned Resource> AssignedResources126 { 127 get 128 { 129 return this.GetTable<Assigned Resource>();131 public System.Data.Linq.Table<AssignedProjectResource> AssignedProjectResources 132 { 133 get 134 { 135 return this.GetTable<AssignedProjectResource>(); 130 136 } 131 137 } … … 219 225 } 220 226 221 public System.Data.Linq.Table<ResourcePermission> ResourcePermissions222 {223 get224 {225 return this.GetTable<ResourcePermission>();226 }227 }228 229 227 public System.Data.Linq.Table<UserPriority> UserPriorities 230 228 { … … 280 278 { 281 279 return this.GetTable<FactClientInfo>(); 280 } 281 } 282 283 public System.Data.Linq.Table<Project> Projects 284 { 285 get 286 { 287 return this.GetTable<Project>(); 288 } 289 } 290 291 public System.Data.Linq.Table<ProjectPermission> ProjectPermissions 292 { 293 get 294 { 295 return this.GetTable<ProjectPermission>(); 296 } 297 } 298 299 public System.Data.Linq.Table<AssignedJobResource> AssignedJobResources 300 { 301 get 302 { 303 return this.GetTable<AssignedJobResource>(); 304 } 305 } 306 307 public System.Data.Linq.Table<FactProjectInfo> FactProjectInfos 308 { 309 get 310 { 311 return this.GetTable<FactProjectInfo>(); 312 } 313 } 314 315 public System.Data.Linq.Table<DimProject> DimProjects 316 { 317 get 318 { 319 return this.GetTable<DimProject>(); 282 320 } 283 321 } 284 322 } 285 323 286 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Assigned Resources")]287 public partial class Assigned Resource : INotifyPropertyChanging, INotifyPropertyChanged324 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AssignedProjectResource")] 325 public partial class AssignedProjectResource : INotifyPropertyChanging, INotifyPropertyChanged 288 326 { 289 327 … … 296 334 private EntityRef<Resource> _Resource; 297 335 298 private EntityRef< Task> _Job;336 private EntityRef<Project> _Project; 299 337 300 338 #region Extensibility Method Definitions … … 304 342 partial void OnResourceIdChanging(System.Guid value); 305 343 partial void OnResourceIdChanged(); 306 partial void On TaskIdChanging(System.Guid value);307 partial void On TaskIdChanged();344 partial void OnProjectIdChanging(System.Guid value); 345 partial void OnProjectIdChanged(); 308 346 #endregion 309 347 310 public Assigned Resource()348 public AssignedProjectResource() 311 349 { 312 350 this._Resource = default(EntityRef<Resource>); 313 this._ Job = default(EntityRef<Task>);351 this._Project = default(EntityRef<Project>); 314 352 OnCreated(); 315 353 } … … 340 378 341 379 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 342 public System.Guid TaskId380 public System.Guid ProjectId 343 381 { 344 382 get … … 350 388 if ((this._JobId != value)) 351 389 { 352 if (this._ Job.HasLoadedOrAssignedValue)390 if (this._Project.HasLoadedOrAssignedValue) 353 391 { 354 392 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 355 393 } 356 this.On TaskIdChanging(value);394 this.OnProjectIdChanging(value); 357 395 this.SendPropertyChanging(); 358 396 this._JobId = value; 359 this.SendPropertyChanged(" TaskId");360 this.On TaskIdChanged();361 } 362 } 363 } 364 365 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_Assigned Resource", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteRule="CASCADE")]397 this.SendPropertyChanged("ProjectId"); 398 this.OnProjectIdChanged(); 399 } 400 } 401 } 402 403 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedProjectResource", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true)] 366 404 public Resource Resource 367 405 { … … 380 418 { 381 419 this._Resource.Entity = null; 382 previousValue.Assigned Resources.Remove(this);420 previousValue.AssignedProjectResources.Remove(this); 383 421 } 384 422 this._Resource.Entity = value; 385 423 if ((value != null)) 386 424 { 387 value.Assigned Resources.Add(this);425 value.AssignedProjectResources.Add(this); 388 426 this._ResourceId = value.ResourceId; 389 427 } … … 397 435 } 398 436 399 [global::System.Data.Linq.Mapping.AssociationAttribute(Name=" Task_AssignedResource", Storage="_Job", ThisKey="TaskId", OtherKey="TaskId", IsForeignKey=true, DeleteRule="CASCADE")]400 public Task Task401 { 402 get 403 { 404 return this._ Job.Entity;405 } 406 set 407 { 408 Task previousValue = this._Job.Entity;437 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_AssignedProjectResource", Storage="_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true, DeleteOnNull=true)] 438 public Project Project 439 { 440 get 441 { 442 return this._Project.Entity; 443 } 444 set 445 { 446 Project previousValue = this._Project.Entity; 409 447 if (((previousValue != value) 410 || (this._ Job.HasLoadedOrAssignedValue == false)))448 || (this._Project.HasLoadedOrAssignedValue == false))) 411 449 { 412 450 this.SendPropertyChanging(); 413 451 if ((previousValue != null)) 414 452 { 415 this._ Job.Entity = null;416 previousValue.Assigned Resources.Remove(this);417 } 418 this._ Job.Entity = value;453 this._Project.Entity = null; 454 previousValue.AssignedProjectResources.Remove(this); 455 } 456 this._Project.Entity = value; 419 457 if ((value != null)) 420 458 { 421 value.Assigned Resources.Add(this);422 this._JobId = value. TaskId;459 value.AssignedProjectResources.Add(this); 460 this._JobId = value.ProjectId; 423 461 } 424 462 else … … 426 464 this._JobId = default(System.Guid); 427 465 } 428 this.SendPropertyChanged(" Task");466 this.SendPropertyChanged("Project"); 429 467 } 430 468 } … … 903 941 private System.Nullable<System.Guid> _OwnerUserId; 904 942 905 private EntitySet<Assigned Resource> _AssignedResources;943 private EntitySet<AssignedProjectResource> _AssignedProjectResources; 906 944 907 945 private EntitySet<Resource> _ChildResources; … … 911 949 private EntitySet<StateLog> _StateLogs; 912 950 913 private EntitySet< ResourcePermission> _ResourcePermissions;951 private EntitySet<AssignedJobResource> _AssignedJobResources; 914 952 915 953 private EntityRef<Resource> _ParentResource; … … 935 973 public Resource() 936 974 { 937 this._Assigned Resources = new EntitySet<AssignedResource>(new Action<AssignedResource>(this.attach_AssignedResources), new Action<AssignedResource>(this.detach_AssignedResources));975 this._AssignedProjectResources = new EntitySet<AssignedProjectResource>(new Action<AssignedProjectResource>(this.attach_AssignedProjectResources), new Action<AssignedProjectResource>(this.detach_AssignedProjectResources)); 938 976 this._ChildResources = new EntitySet<Resource>(new Action<Resource>(this.attach_ChildResources), new Action<Resource>(this.detach_ChildResources)); 939 977 this._UptimeCalendars = new EntitySet<Downtime>(new Action<Downtime>(this.attach_UptimeCalendars), new Action<Downtime>(this.detach_UptimeCalendars)); 940 978 this._StateLogs = new EntitySet<StateLog>(new Action<StateLog>(this.attach_StateLogs), new Action<StateLog>(this.detach_StateLogs)); 941 this._ ResourcePermissions = new EntitySet<ResourcePermission>(new Action<ResourcePermission>(this.attach_ResourcePermissions), new Action<ResourcePermission>(this.detach_ResourcePermissions));979 this._AssignedJobResources = new EntitySet<AssignedJobResource>(new Action<AssignedJobResource>(this.attach_AssignedJobResources), new Action<AssignedJobResource>(this.detach_AssignedJobResources)); 942 980 this._ParentResource = default(EntityRef<Resource>); 943 981 OnCreated(); … … 1068 1106 } 1069 1107 1070 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_Assigned Resource", Storage="_AssignedResources", ThisKey="ResourceId", OtherKey="ResourceId")]1071 public EntitySet<Assigned Resource> AssignedResources1072 { 1073 get 1074 { 1075 return this._Assigned Resources;1076 } 1077 set 1078 { 1079 this._Assigned Resources.Assign(value);1108 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedProjectResource", Storage="_AssignedProjectResources", ThisKey="ResourceId", OtherKey="ResourceId")] 1109 public EntitySet<AssignedProjectResource> AssignedProjectResources 1110 { 1111 get 1112 { 1113 return this._AssignedProjectResources; 1114 } 1115 set 1116 { 1117 this._AssignedProjectResources.Assign(value); 1080 1118 } 1081 1119 } … … 1120 1158 } 1121 1159 1122 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ ResourcePermission", Storage="_ResourcePermissions", ThisKey="ResourceId", OtherKey="ResourceId")]1123 public EntitySet< ResourcePermission> ResourcePermissions1124 { 1125 get 1126 { 1127 return this._ ResourcePermissions;1128 } 1129 set 1130 { 1131 this._ ResourcePermissions.Assign(value);1160 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedJobResource", Storage="_AssignedJobResources", ThisKey="ResourceId", OtherKey="ResourceId")] 1161 public EntitySet<AssignedJobResource> AssignedJobResources 1162 { 1163 get 1164 { 1165 return this._AssignedJobResources; 1166 } 1167 set 1168 { 1169 this._AssignedJobResources.Assign(value); 1132 1170 } 1133 1171 } … … 1187 1225 } 1188 1226 1189 private void attach_Assigned Resources(AssignedResource entity)1227 private void attach_AssignedProjectResources(AssignedProjectResource entity) 1190 1228 { 1191 1229 this.SendPropertyChanging(); … … 1193 1231 } 1194 1232 1195 private void detach_Assigned Resources(AssignedResource entity)1233 private void detach_AssignedProjectResources(AssignedProjectResource entity) 1196 1234 { 1197 1235 this.SendPropertyChanging(); … … 1235 1273 } 1236 1274 1237 private void attach_ ResourcePermissions(ResourcePermissionentity)1275 private void attach_AssignedJobResources(AssignedJobResource entity) 1238 1276 { 1239 1277 this.SendPropertyChanging(); … … 1241 1279 } 1242 1280 1243 private void detach_ ResourcePermissions(ResourcePermissionentity)1281 private void detach_AssignedJobResources(AssignedJobResource entity) 1244 1282 { 1245 1283 this.SendPropertyChanging(); … … 1620 1658 private System.Guid _HiveExperimentId; 1621 1659 1622 private EntitySet<AssignedResource> _AssignedResources;1623 1624 1660 private EntitySet<RequiredPlugin> _RequiredPlugins; 1625 1661 … … 1666 1702 public Task() 1667 1703 { 1668 this._AssignedResources = new EntitySet<AssignedResource>(new Action<AssignedResource>(this.attach_AssignedResources), new Action<AssignedResource>(this.detach_AssignedResources));1669 1704 this._RequiredPlugins = new EntitySet<RequiredPlugin>(new Action<RequiredPlugin>(this.attach_RequiredPlugins), new Action<RequiredPlugin>(this.detach_RequiredPlugins)); 1670 1705 this._Jobs = new EntitySet<Task>(new Action<Task>(this.attach_Jobs), new Action<Task>(this.detach_Jobs)); … … 1924 1959 } 1925 1960 1926 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_AssignedResource", Storage="_AssignedResources", ThisKey="TaskId", OtherKey="TaskId")]1927 public EntitySet<AssignedResource> AssignedResources1928 {1929 get1930 {1931 return this._AssignedResources;1932 }1933 set1934 {1935 this._AssignedResources.Assign(value);1936 }1937 }1938 1939 1961 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_RequiredPlugin", Storage="_RequiredPlugins", ThisKey="TaskId", OtherKey="TaskId")] 1940 1962 public EntitySet<RequiredPlugin> RequiredPlugins … … 2091 2113 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 2092 2114 } 2093 }2094 2095 private void attach_AssignedResources(AssignedResource entity)2096 {2097 this.SendPropertyChanging();2098 entity.Task = this;2099 }2100 2101 private void detach_AssignedResources(AssignedResource entity)2102 {2103 this.SendPropertyChanging();2104 entity.Task = null;2105 2115 } 2106 2116 … … 2425 2435 private string _Description; 2426 2436 2427 private string _ResourceIds;2428 2429 2437 private System.Guid _UserId; 2430 2438 2431 2439 private System.DateTime _DateCreated; 2432 2440 2441 private System.Guid _ProjectId; 2442 2443 private global::HeuristicLab.Services.Hive.DataAccess.JobState _State; 2444 2433 2445 private EntitySet<Task> _Jobs; 2434 2446 2435 2447 private EntitySet<JobPermission> _HiveExperimentPermissions; 2448 2449 private EntitySet<AssignedJobResource> _AssignedJobResources; 2450 2451 private EntityRef<Project> _Project; 2436 2452 2437 2453 #region Extensibility Method Definitions … … 2445 2461 partial void OnDescriptionChanging(string value); 2446 2462 partial void OnDescriptionChanged(); 2447 partial void OnResourceIdsChanging(string value);2448 partial void OnResourceIdsChanged();2449 2463 partial void OnOwnerUserIdChanging(System.Guid value); 2450 2464 partial void OnOwnerUserIdChanged(); 2451 2465 partial void OnDateCreatedChanging(System.DateTime value); 2452 2466 partial void OnDateCreatedChanged(); 2467 partial void OnProjectIdChanging(System.Guid value); 2468 partial void OnProjectIdChanged(); 2469 partial void OnStateChanging(global::HeuristicLab.Services.Hive.DataAccess.JobState value); 2470 partial void OnStateChanged(); 2453 2471 #endregion 2454 2472 … … 2457 2475 this._Jobs = new EntitySet<Task>(new Action<Task>(this.attach_Jobs), new Action<Task>(this.detach_Jobs)); 2458 2476 this._HiveExperimentPermissions = new EntitySet<JobPermission>(new Action<JobPermission>(this.attach_HiveExperimentPermissions), new Action<JobPermission>(this.detach_HiveExperimentPermissions)); 2477 this._AssignedJobResources = new EntitySet<AssignedJobResource>(new Action<AssignedJobResource>(this.attach_AssignedJobResources), new Action<AssignedJobResource>(this.detach_AssignedJobResources)); 2478 this._Project = default(EntityRef<Project>); 2459 2479 OnCreated(); 2460 2480 } … … 2520 2540 } 2521 2541 2522 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceIds", DbType="VarChar(MAX)")]2523 public string ResourceIds2524 {2525 get2526 {2527 return this._ResourceIds;2528 }2529 set2530 {2531 if ((this._ResourceIds != value))2532 {2533 this.OnResourceIdsChanging(value);2534 this.SendPropertyChanging();2535 this._ResourceIds = value;2536 this.SendPropertyChanged("ResourceIds");2537 this.OnResourceIdsChanged();2538 }2539 }2540 }2541 2542 2542 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier")] 2543 2543 public System.Guid OwnerUserId … … 2580 2580 } 2581 2581 2582 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="UniqueIdentifier NOT NULL")] 2583 public System.Guid ProjectId 2584 { 2585 get 2586 { 2587 return this._ProjectId; 2588 } 2589 set 2590 { 2591 if ((this._ProjectId != value)) 2592 { 2593 if (this._Project.HasLoadedOrAssignedValue) 2594 { 2595 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 2596 } 2597 this.OnProjectIdChanging(value); 2598 this.SendPropertyChanging(); 2599 this._ProjectId = value; 2600 this.SendPropertyChanged("ProjectId"); 2601 this.OnProjectIdChanged(); 2602 } 2603 } 2604 } 2605 2606 [global::System.Data.Linq.Mapping.ColumnAttribute(Name="JobState", Storage="_State", DbType="VarChar(30)", CanBeNull=false)] 2607 public global::HeuristicLab.Services.Hive.DataAccess.JobState State 2608 { 2609 get 2610 { 2611 return this._State; 2612 } 2613 set 2614 { 2615 if ((this._State != value)) 2616 { 2617 this.OnStateChanging(value); 2618 this.SendPropertyChanging(); 2619 this._State = value; 2620 this.SendPropertyChanged("State"); 2621 this.OnStateChanged(); 2622 } 2623 } 2624 } 2625 2582 2626 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_Task", Storage="_Jobs", ThisKey="JobId", OtherKey="JobId")] 2583 2627 public EntitySet<Task> Tasks … … 2606 2650 } 2607 2651 2652 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_AssignedJobResource", Storage="_AssignedJobResources", ThisKey="JobId", OtherKey="JobId")] 2653 public EntitySet<AssignedJobResource> AssignedJobResources 2654 { 2655 get 2656 { 2657 return this._AssignedJobResources; 2658 } 2659 set 2660 { 2661 this._AssignedJobResources.Assign(value); 2662 } 2663 } 2664 2665 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_Job", Storage="_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] 2666 public Project Project 2667 { 2668 get 2669 { 2670 return this._Project.Entity; 2671 } 2672 set 2673 { 2674 Project previousValue = this._Project.Entity; 2675 if (((previousValue != value) 2676 || (this._Project.HasLoadedOrAssignedValue == false))) 2677 { 2678 this.SendPropertyChanging(); 2679 if ((previousValue != null)) 2680 { 2681 this._Project.Entity = null; 2682 previousValue.Jobs.Remove(this); 2683 } 2684 this._Project.Entity = value; 2685 if ((value != null)) 2686 { 2687 value.Jobs.Add(this); 2688 this._ProjectId = value.ProjectId; 2689 } 2690 else 2691 { 2692 this._ProjectId = default(System.Guid); 2693 } 2694 this.SendPropertyChanged("Project"); 2695 } 2696 } 2697 } 2698 2608 2699 public event PropertyChangingEventHandler PropertyChanging; 2609 2700 … … 2645 2736 2646 2737 private void detach_HiveExperimentPermissions(JobPermission entity) 2738 { 2739 this.SendPropertyChanging(); 2740 entity.Job = null; 2741 } 2742 2743 private void attach_AssignedJobResources(AssignedJobResource entity) 2744 { 2745 this.SendPropertyChanging(); 2746 entity.Job = this; 2747 } 2748 2749 private void detach_AssignedJobResources(AssignedJobResource entity) 2647 2750 { 2648 2751 this.SendPropertyChanging(); … … 2747 2850 } 2748 2851 2749 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_TaskData", Storage="_Job", ThisKey="TaskId", OtherKey="TaskId", IsForeignKey=true )]2852 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Task_TaskData", Storage="_Job", ThisKey="TaskId", OtherKey="TaskId", IsForeignKey=true, DeleteOnNull=true)] 2750 2853 public Task Task 2751 2854 { … … 3385 3488 } 3386 3489 3387 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_JobPermission", Storage="_HiveExperiment", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true )]3490 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_JobPermission", Storage="_HiveExperiment", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true, DeleteOnNull=true)] 3388 3491 public Job Job 3389 3492 { … … 3526 3629 } 3527 3630 3528 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ResourcePermission")]3529 public partial class ResourcePermission : INotifyPropertyChanging, INotifyPropertyChanged3530 {3531 3532 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);3533 3534 private System.Guid _ResourceId;3535 3536 private System.Guid _GrantedUserId;3537 3538 private System.Guid _GrantedByUserId;3539 3540 private EntityRef<Resource> _Resource;3541 3542 #region Extensibility Method Definitions3543 partial void OnLoaded();3544 partial void OnValidate(System.Data.Linq.ChangeAction action);3545 partial void OnCreated();3546 partial void OnResourceIdChanging(System.Guid value);3547 partial void OnResourceIdChanged();3548 partial void OnGrantedUserIdChanging(System.Guid value);3549 partial void OnGrantedUserIdChanged();3550 partial void OnGrantedByUserIdChanging(System.Guid value);3551 partial void OnGrantedByUserIdChanged();3552 #endregion3553 3554 public ResourcePermission()3555 {3556 this._Resource = default(EntityRef<Resource>);3557 OnCreated();3558 }3559 3560 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]3561 public System.Guid ResourceId3562 {3563 get3564 {3565 return this._ResourceId;3566 }3567 set3568 {3569 if ((this._ResourceId != value))3570 {3571 if (this._Resource.HasLoadedOrAssignedValue)3572 {3573 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();3574 }3575 this.OnResourceIdChanging(value);3576 this.SendPropertyChanging();3577 this._ResourceId = value;3578 this.SendPropertyChanged("ResourceId");3579 this.OnResourceIdChanged();3580 }3581 }3582 }3583 3584 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrantedUserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)]3585 public System.Guid GrantedUserId3586 {3587 get3588 {3589 return this._GrantedUserId;3590 }3591 set3592 {3593 if ((this._GrantedUserId != value))3594 {3595 this.OnGrantedUserIdChanging(value);3596 this.SendPropertyChanging();3597 this._GrantedUserId = value;3598 this.SendPropertyChanged("GrantedUserId");3599 this.OnGrantedUserIdChanged();3600 }3601 }3602 }3603 3604 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrantedByUserId", DbType="UniqueIdentifier NOT NULL")]3605 public System.Guid GrantedByUserId3606 {3607 get3608 {3609 return this._GrantedByUserId;3610 }3611 set3612 {3613 if ((this._GrantedByUserId != value))3614 {3615 this.OnGrantedByUserIdChanging(value);3616 this.SendPropertyChanging();3617 this._GrantedByUserId = value;3618 this.SendPropertyChanged("GrantedByUserId");3619 this.OnGrantedByUserIdChanged();3620 }3621 }3622 }3623 3624 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_ResourcePermission", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true)]3625 public Resource Resource3626 {3627 get3628 {3629 return this._Resource.Entity;3630 }3631 set3632 {3633 Resource previousValue = this._Resource.Entity;3634 if (((previousValue != value)3635 || (this._Resource.HasLoadedOrAssignedValue == false)))3636 {3637 this.SendPropertyChanging();3638 if ((previousValue != null))3639 {3640 this._Resource.Entity = null;3641 previousValue.ResourcePermissions.Remove(this);3642 }3643 this._Resource.Entity = value;3644 if ((value != null))3645 {3646 value.ResourcePermissions.Add(this);3647 this._ResourceId = value.ResourceId;3648 }3649 else3650 {3651 this._ResourceId = default(System.Guid);3652 }3653 this.SendPropertyChanged("Resource");3654 }3655 }3656 }3657 3658 public event PropertyChangingEventHandler PropertyChanging;3659 3660 public event PropertyChangedEventHandler PropertyChanged;3661 3662 protected virtual void SendPropertyChanging()3663 {3664 if ((this.PropertyChanging != null))3665 {3666 this.PropertyChanging(this, emptyChangingEventArgs);3667 }3668 }3669 3670 protected virtual void SendPropertyChanged(String propertyName)3671 {3672 if ((this.PropertyChanged != null))3673 {3674 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));3675 }3676 }3677 }3678 3679 3631 [global::System.Data.Linq.Mapping.TableAttribute(Name="")] 3680 3632 public partial class UserPriority : INotifyPropertyChanging, INotifyPropertyChanged … … 3775 3727 private System.Guid _ResourceId; 3776 3728 3777 private System.Nullable<System.DateTime> _ExpirationTime; 3778 3779 private System.Nullable<System.Guid> _ResourceGroupId; 3780 3781 private System.Nullable<System.Guid> _ResourceGroup2Id; 3782 3783 private string _GroupName; 3784 3785 private string _GroupName2; 3729 private System.Nullable<System.Guid> _ParentResourceId; 3730 3731 private string _ResourceType; 3732 3733 private System.DateTime _DateCreated; 3734 3735 private System.Nullable<System.DateTime> _DateExpired; 3786 3736 3787 3737 private EntitySet<FactTask> _FactTasks; … … 3799 3749 partial void OnResourceIdChanging(System.Guid value); 3800 3750 partial void OnResourceIdChanged(); 3801 partial void OnExpirationTimeChanging(System.Nullable<System.DateTime> value); 3802 partial void OnExpirationTimeChanged(); 3803 partial void OnResourceGroupIdChanging(System.Nullable<System.Guid> value); 3804 partial void OnResourceGroupIdChanged(); 3805 partial void OnResourceGroup2IdChanging(System.Nullable<System.Guid> value); 3806 partial void OnResourceGroup2IdChanged(); 3807 partial void OnGroupNameChanging(string value); 3808 partial void OnGroupNameChanged(); 3809 partial void OnGroupName2Changing(string value); 3810 partial void OnGroupName2Changed(); 3751 partial void OnParentResourceIdChanging(System.Nullable<System.Guid> value); 3752 partial void OnParentResourceIdChanged(); 3753 partial void OnResourceTypeChanging(string value); 3754 partial void OnResourceTypeChanged(); 3755 partial void OnDateCreatedChanging(System.DateTime value); 3756 partial void OnDateCreatedChanged(); 3757 partial void OnDateExpiredChanging(System.Nullable<System.DateTime> value); 3758 partial void OnDateExpiredChanged(); 3811 3759 #endregion 3812 3760 … … 3878 3826 } 3879 3827 3880 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExpirationTime", DbType="DateTime")] 3881 public System.Nullable<System.DateTime> ExpirationTime 3882 { 3883 get 3884 { 3885 return this._ExpirationTime; 3886 } 3887 set 3888 { 3889 if ((this._ExpirationTime != value)) 3890 { 3891 this.OnExpirationTimeChanging(value); 3892 this.SendPropertyChanging(); 3893 this._ExpirationTime = value; 3894 this.SendPropertyChanged("ExpirationTime"); 3895 this.OnExpirationTimeChanged(); 3896 } 3897 } 3898 } 3899 3900 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceGroupId", DbType="UniqueIdentifier")] 3901 public System.Nullable<System.Guid> ResourceGroupId 3902 { 3903 get 3904 { 3905 return this._ResourceGroupId; 3906 } 3907 set 3908 { 3909 if ((this._ResourceGroupId != value)) 3910 { 3911 this.OnResourceGroupIdChanging(value); 3912 this.SendPropertyChanging(); 3913 this._ResourceGroupId = value; 3914 this.SendPropertyChanged("ResourceGroupId"); 3915 this.OnResourceGroupIdChanged(); 3916 } 3917 } 3918 } 3919 3920 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceGroup2Id", DbType="UniqueIdentifier")] 3921 public System.Nullable<System.Guid> ResourceGroup2Id 3922 { 3923 get 3924 { 3925 return this._ResourceGroup2Id; 3926 } 3927 set 3928 { 3929 if ((this._ResourceGroup2Id != value)) 3930 { 3931 this.OnResourceGroup2IdChanging(value); 3932 this.SendPropertyChanging(); 3933 this._ResourceGroup2Id = value; 3934 this.SendPropertyChanged("ResourceGroup2Id"); 3935 this.OnResourceGroup2IdChanged(); 3936 } 3937 } 3938 } 3939 3940 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GroupName")] 3941 public string GroupName 3942 { 3943 get 3944 { 3945 return this._GroupName; 3946 } 3947 set 3948 { 3949 if ((this._GroupName != value)) 3950 { 3951 this.OnGroupNameChanging(value); 3952 this.SendPropertyChanging(); 3953 this._GroupName = value; 3954 this.SendPropertyChanged("GroupName"); 3955 this.OnGroupNameChanged(); 3956 } 3957 } 3958 } 3959 3960 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GroupName2")] 3961 public string GroupName2 3962 { 3963 get 3964 { 3965 return this._GroupName2; 3966 } 3967 set 3968 { 3969 if ((this._GroupName2 != value)) 3970 { 3971 this.OnGroupName2Changing(value); 3972 this.SendPropertyChanging(); 3973 this._GroupName2 = value; 3974 this.SendPropertyChanged("GroupName2"); 3975 this.OnGroupName2Changed(); 3828 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentResourceId", DbType="UniqueIdentifier")] 3829 public System.Nullable<System.Guid> ParentResourceId 3830 { 3831 get 3832 { 3833 return this._ParentResourceId; 3834 } 3835 set 3836 { 3837 if ((this._ParentResourceId != value)) 3838 { 3839 this.OnParentResourceIdChanging(value); 3840 this.SendPropertyChanging(); 3841 this._ParentResourceId = value; 3842 this.SendPropertyChanged("ParentResourceId"); 3843 this.OnParentResourceIdChanged(); 3844 } 3845 } 3846 } 3847 3848 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceType", CanBeNull=false)] 3849 public string ResourceType 3850 { 3851 get 3852 { 3853 return this._ResourceType; 3854 } 3855 set 3856 { 3857 if ((this._ResourceType != value)) 3858 { 3859 this.OnResourceTypeChanging(value); 3860 this.SendPropertyChanging(); 3861 this._ResourceType = value; 3862 this.SendPropertyChanged("ResourceType"); 3863 this.OnResourceTypeChanged(); 3864 } 3865 } 3866 } 3867 3868 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated", DbType="DateTime NOT NULL")] 3869 public System.DateTime DateCreated 3870 { 3871 get 3872 { 3873 return this._DateCreated; 3874 } 3875 set 3876 { 3877 if ((this._DateCreated != value)) 3878 { 3879 this.OnDateCreatedChanging(value); 3880 this.SendPropertyChanging(); 3881 this._DateCreated = value; 3882 this.SendPropertyChanged("DateCreated"); 3883 this.OnDateCreatedChanged(); 3884 } 3885 } 3886 } 3887 3888 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateExpired", DbType="DateTime")] 3889 public System.Nullable<System.DateTime> DateExpired 3890 { 3891 get 3892 { 3893 return this._DateExpired; 3894 } 3895 set 3896 { 3897 if ((this._DateExpired != value)) 3898 { 3899 this.OnDateExpiredChanging(value); 3900 this.SendPropertyChanging(); 3901 this._DateExpired = value; 3902 this.SendPropertyChanged("DateExpired"); 3903 this.OnDateExpiredChanged(); 3976 3904 } 3977 3905 } … … 4575 4503 private System.Nullable<System.DateTime> _DateCompleted; 4576 4504 4505 private System.Guid _ProjectId; 4506 4577 4507 private EntitySet<FactTask> _FactTasks; 4508 4509 private EntityRef<DimProject> _DimProject; 4578 4510 4579 4511 #region Extensibility Method Definitions … … 4597 4529 partial void OnDateCompletedChanging(System.Nullable<System.DateTime> value); 4598 4530 partial void OnDateCompletedChanged(); 4531 partial void OnProjectIdChanging(System.Guid value); 4532 partial void OnProjectIdChanged(); 4599 4533 #endregion 4600 4534 … … 4602 4536 { 4603 4537 this._FactTasks = new EntitySet<FactTask>(new Action<FactTask>(this.attach_FactTasks), new Action<FactTask>(this.detach_FactTasks)); 4538 this._DimProject = default(EntityRef<DimProject>); 4604 4539 OnCreated(); 4605 4540 } … … 4765 4700 } 4766 4701 4702 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="UniqueIdentifier NOT NULL")] 4703 public System.Guid ProjectId 4704 { 4705 get 4706 { 4707 return this._ProjectId; 4708 } 4709 set 4710 { 4711 if ((this._ProjectId != value)) 4712 { 4713 if (this._DimProject.HasLoadedOrAssignedValue) 4714 { 4715 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 4716 } 4717 this.OnProjectIdChanging(value); 4718 this.SendPropertyChanging(); 4719 this._ProjectId = value; 4720 this.SendPropertyChanged("ProjectId"); 4721 this.OnProjectIdChanged(); 4722 } 4723 } 4724 } 4725 4767 4726 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DimJob_FactTask", Storage="_FactTasks", ThisKey="JobId", OtherKey="JobId")] 4768 4727 public EntitySet<FactTask> FactTasks … … 4775 4734 { 4776 4735 this._FactTasks.Assign(value); 4736 } 4737 } 4738 4739 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DimProject_DimJob", Storage="_DimProject", ThisKey="ProjectId", OtherKey="Id", IsForeignKey=true)] 4740 public DimProject DimProject 4741 { 4742 get 4743 { 4744 return this._DimProject.Entity; 4745 } 4746 set 4747 { 4748 DimProject previousValue = this._DimProject.Entity; 4749 if (((previousValue != value) 4750 || (this._DimProject.HasLoadedOrAssignedValue == false))) 4751 { 4752 this.SendPropertyChanging(); 4753 if ((previousValue != null)) 4754 { 4755 this._DimProject.Entity = null; 4756 previousValue.DimJobs.Remove(this); 4757 } 4758 this._DimProject.Entity = value; 4759 if ((value != null)) 4760 { 4761 value.DimJobs.Add(this); 4762 this._ProjectId = value.Id; 4763 } 4764 else 4765 { 4766 this._ProjectId = default(System.Guid); 4767 } 4768 this.SendPropertyChanged("DimProject"); 4769 } 4777 4770 } 4778 4771 } … … 4830 4823 4831 4824 private EntitySet<FactClientInfo> _FactClientInfos; 4825 4826 private EntitySet<FactProjectInfo> _FactProjectInfos; 4832 4827 4833 4828 #region Extensibility Method Definitions … … 4852 4847 { 4853 4848 this._FactClientInfos = new EntitySet<FactClientInfo>(new Action<FactClientInfo>(this.attach_FactClientInfos), new Action<FactClientInfo>(this.detach_FactClientInfos)); 4849 this._FactProjectInfos = new EntitySet<FactProjectInfo>(new Action<FactProjectInfo>(this.attach_FactProjectInfos), new Action<FactProjectInfo>(this.detach_FactProjectInfos)); 4854 4850 OnCreated(); 4855 4851 } … … 4988 4984 } 4989 4985 4986 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DimTime_FactProjectInfo", Storage="_FactProjectInfos", ThisKey="Time", OtherKey="Time")] 4987 public EntitySet<FactProjectInfo> FactProjectInfos 4988 { 4989 get 4990 { 4991 return this._FactProjectInfos; 4992 } 4993 set 4994 { 4995 this._FactProjectInfos.Assign(value); 4996 } 4997 } 4998 4990 4999 public event PropertyChangingEventHandler PropertyChanging; 4991 5000 … … 5015 5024 5016 5025 private void detach_FactClientInfos(FactClientInfo entity) 5026 { 5027 this.SendPropertyChanging(); 5028 entity.DimTime = null; 5029 } 5030 5031 private void attach_FactProjectInfos(FactProjectInfo entity) 5032 { 5033 this.SendPropertyChanging(); 5034 entity.DimTime = this; 5035 } 5036 5037 private void detach_FactProjectInfos(FactProjectInfo entity) 5017 5038 { 5018 5039 this.SendPropertyChanging(); … … 5261 5282 } 5262 5283 5263 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier N ULL", IsPrimaryKey=true)]5284 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 5264 5285 public System.Guid UserId 5265 5286 { … … 5607 5628 } 5608 5629 } 5630 5631 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Project")] 5632 public partial class Project : INotifyPropertyChanging, INotifyPropertyChanged 5633 { 5634 5635 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 5636 5637 private System.Guid _ProjectId; 5638 5639 private System.Nullable<System.Guid> _ParentProjectId; 5640 5641 private System.DateTime _DateCreated; 5642 5643 private string _Name; 5644 5645 private string _Description; 5646 5647 private System.Guid _OwnerUserId; 5648 5649 private System.DateTime _StartDate; 5650 5651 private System.Nullable<System.DateTime> _EndDate; 5652 5653 private EntitySet<AssignedProjectResource> _AssignedProjectResources; 5654 5655 private EntitySet<Job> _Jobs; 5656 5657 private EntitySet<Project> _Projects; 5658 5659 private EntitySet<ProjectPermission> _ProjectPermissions; 5660 5661 private EntityRef<Project> _Project1; 5662 5663 #region Extensibility Method Definitions 5664 partial void OnLoaded(); 5665 partial void OnValidate(System.Data.Linq.ChangeAction action); 5666 partial void OnCreated(); 5667 partial void OnProjectIdChanging(System.Guid value); 5668 partial void OnProjectIdChanged(); 5669 partial void OnParentProjectIdChanging(System.Nullable<System.Guid> value); 5670 partial void OnParentProjectIdChanged(); 5671 partial void OnDateCreatedChanging(System.DateTime value); 5672 partial void OnDateCreatedChanged(); 5673 partial void OnNameChanging(string value); 5674 partial void OnNameChanged(); 5675 partial void OnDescriptionChanging(string value); 5676 partial void OnDescriptionChanged(); 5677 partial void OnOwnerUserIdChanging(System.Guid value); 5678 partial void OnOwnerUserIdChanged(); 5679 partial void OnStartDateChanging(System.DateTime value); 5680 partial void OnStartDateChanged(); 5681 partial void OnEndDateChanging(System.Nullable<System.DateTime> value); 5682 partial void OnEndDateChanged(); 5683 #endregion 5684 5685 public Project() 5686 { 5687 this._AssignedProjectResources = new EntitySet<AssignedProjectResource>(new Action<AssignedProjectResource>(this.attach_AssignedProjectResources), new Action<AssignedProjectResource>(this.detach_AssignedProjectResources)); 5688 this._Jobs = new EntitySet<Job>(new Action<Job>(this.attach_Jobs), new Action<Job>(this.detach_Jobs)); 5689 this._Projects = new EntitySet<Project>(new Action<Project>(this.attach_Projects), new Action<Project>(this.detach_Projects)); 5690 this._ProjectPermissions = new EntitySet<ProjectPermission>(new Action<ProjectPermission>(this.attach_ProjectPermissions), new Action<ProjectPermission>(this.detach_ProjectPermissions)); 5691 this._Project1 = default(EntityRef<Project>); 5692 OnCreated(); 5693 } 5694 5695 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] 5696 public System.Guid ProjectId 5697 { 5698 get 5699 { 5700 return this._ProjectId; 5701 } 5702 set 5703 { 5704 if ((this._ProjectId != value)) 5705 { 5706 this.OnProjectIdChanging(value); 5707 this.SendPropertyChanging(); 5708 this._ProjectId = value; 5709 this.SendPropertyChanged("ProjectId"); 5710 this.OnProjectIdChanged(); 5711 } 5712 } 5713 } 5714 5715 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentProjectId", DbType="UniqueIdentifier")] 5716 public System.Nullable<System.Guid> ParentProjectId 5717 { 5718 get 5719 { 5720 return this._ParentProjectId; 5721 } 5722 set 5723 { 5724 if ((this._ParentProjectId != value)) 5725 { 5726 if (this._Project1.HasLoadedOrAssignedValue) 5727 { 5728 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 5729 } 5730 this.OnParentProjectIdChanging(value); 5731 this.SendPropertyChanging(); 5732 this._ParentProjectId = value; 5733 this.SendPropertyChanged("ParentProjectId"); 5734 this.OnParentProjectIdChanged(); 5735 } 5736 } 5737 } 5738 5739 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated", DbType="DateTime NOT NULL")] 5740 public System.DateTime DateCreated 5741 { 5742 get 5743 { 5744 return this._DateCreated; 5745 } 5746 set 5747 { 5748 if ((this._DateCreated != value)) 5749 { 5750 this.OnDateCreatedChanging(value); 5751 this.SendPropertyChanging(); 5752 this._DateCreated = value; 5753 this.SendPropertyChanged("DateCreated"); 5754 this.OnDateCreatedChanged(); 5755 } 5756 } 5757 } 5758 5759 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="VarChar(MAX) NOT NULL", CanBeNull=false)] 5760 public string Name 5761 { 5762 get 5763 { 5764 return this._Name; 5765 } 5766 set 5767 { 5768 if ((this._Name != value)) 5769 { 5770 this.OnNameChanging(value); 5771 this.SendPropertyChanging(); 5772 this._Name = value; 5773 this.SendPropertyChanged("Name"); 5774 this.OnNameChanged(); 5775 } 5776 } 5777 } 5778 5779 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="VarChar(MAX)")] 5780 public string Description 5781 { 5782 get 5783 { 5784 return this._Description; 5785 } 5786 set 5787 { 5788 if ((this._Description != value)) 5789 { 5790 this.OnDescriptionChanging(value); 5791 this.SendPropertyChanging(); 5792 this._Description = value; 5793 this.SendPropertyChanged("Description"); 5794 this.OnDescriptionChanged(); 5795 } 5796 } 5797 } 5798 5799 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerUserId", DbType="UniqueIdentifier NOT NULL")] 5800 public System.Guid OwnerUserId 5801 { 5802 get 5803 { 5804 return this._OwnerUserId; 5805 } 5806 set 5807 { 5808 if ((this._OwnerUserId != value)) 5809 { 5810 this.OnOwnerUserIdChanging(value); 5811 this.SendPropertyChanging(); 5812 this._OwnerUserId = value; 5813 this.SendPropertyChanged("OwnerUserId"); 5814 this.OnOwnerUserIdChanged(); 5815 } 5816 } 5817 } 5818 5819 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime NOT NULL")] 5820 public System.DateTime StartDate 5821 { 5822 get 5823 { 5824 return this._StartDate; 5825 } 5826 set 5827 { 5828 if ((this._StartDate != value)) 5829 { 5830 this.OnStartDateChanging(value); 5831 this.SendPropertyChanging(); 5832 this._StartDate = value; 5833 this.SendPropertyChanged("StartDate"); 5834 this.OnStartDateChanged(); 5835 } 5836 } 5837 } 5838 5839 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")] 5840 public System.Nullable<System.DateTime> EndDate 5841 { 5842 get 5843 { 5844 return this._EndDate; 5845 } 5846 set 5847 { 5848 if ((this._EndDate != value)) 5849 { 5850 this.OnEndDateChanging(value); 5851 this.SendPropertyChanging(); 5852 this._EndDate = value; 5853 this.SendPropertyChanged("EndDate"); 5854 this.OnEndDateChanged(); 5855 } 5856 } 5857 } 5858 5859 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_AssignedProjectResource", Storage="_AssignedProjectResources", ThisKey="ProjectId", OtherKey="ProjectId")] 5860 public EntitySet<AssignedProjectResource> AssignedProjectResources 5861 { 5862 get 5863 { 5864 return this._AssignedProjectResources; 5865 } 5866 set 5867 { 5868 this._AssignedProjectResources.Assign(value); 5869 } 5870 } 5871 5872 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_Job", Storage="_Jobs", ThisKey="ProjectId", OtherKey="ProjectId")] 5873 public EntitySet<Job> Jobs 5874 { 5875 get 5876 { 5877 return this._Jobs; 5878 } 5879 set 5880 { 5881 this._Jobs.Assign(value); 5882 } 5883 } 5884 5885 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_Project", Storage="_Projects", ThisKey="ProjectId", OtherKey="ParentProjectId")] 5886 public EntitySet<Project> ChildProjects 5887 { 5888 get 5889 { 5890 return this._Projects; 5891 } 5892 set 5893 { 5894 this._Projects.Assign(value); 5895 } 5896 } 5897 5898 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_ProjectPermission", Storage="_ProjectPermissions", ThisKey="ProjectId", OtherKey="ProjectId")] 5899 public EntitySet<ProjectPermission> ProjectPermissions 5900 { 5901 get 5902 { 5903 return this._ProjectPermissions; 5904 } 5905 set 5906 { 5907 this._ProjectPermissions.Assign(value); 5908 } 5909 } 5910 5911 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_Project", Storage="_Project1", ThisKey="ParentProjectId", OtherKey="ProjectId", IsForeignKey=true)] 5912 public Project ParentProject 5913 { 5914 get 5915 { 5916 return this._Project1.Entity; 5917 } 5918 set 5919 { 5920 Project previousValue = this._Project1.Entity; 5921 if (((previousValue != value) 5922 || (this._Project1.HasLoadedOrAssignedValue == false))) 5923 { 5924 this.SendPropertyChanging(); 5925 if ((previousValue != null)) 5926 { 5927 this._Project1.Entity = null; 5928 previousValue.ChildProjects.Remove(this); 5929 } 5930 this._Project1.Entity = value; 5931 if ((value != null)) 5932 { 5933 value.ChildProjects.Add(this); 5934 this._ParentProjectId = value.ProjectId; 5935 } 5936 else 5937 { 5938 this._ParentProjectId = default(Nullable<System.Guid>); 5939 } 5940 this.SendPropertyChanged("ParentProject"); 5941 } 5942 } 5943 } 5944 5945 public event PropertyChangingEventHandler PropertyChanging; 5946 5947 public event PropertyChangedEventHandler PropertyChanged; 5948 5949 protected virtual void SendPropertyChanging() 5950 { 5951 if ((this.PropertyChanging != null)) 5952 { 5953 this.PropertyChanging(this, emptyChangingEventArgs); 5954 } 5955 } 5956 5957 protected virtual void SendPropertyChanged(String propertyName) 5958 { 5959 if ((this.PropertyChanged != null)) 5960 { 5961 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 5962 } 5963 } 5964 5965 private void attach_AssignedProjectResources(AssignedProjectResource entity) 5966 { 5967 this.SendPropertyChanging(); 5968 entity.Project = this; 5969 } 5970 5971 private void detach_AssignedProjectResources(AssignedProjectResource entity) 5972 { 5973 this.SendPropertyChanging(); 5974 entity.Project = null; 5975 } 5976 5977 private void attach_Jobs(Job entity) 5978 { 5979 this.SendPropertyChanging(); 5980 entity.Project = this; 5981 } 5982 5983 private void detach_Jobs(Job entity) 5984 { 5985 this.SendPropertyChanging(); 5986 entity.Project = null; 5987 } 5988 5989 private void attach_Projects(Project entity) 5990 { 5991 this.SendPropertyChanging(); 5992 entity.ParentProject = this; 5993 } 5994 5995 private void detach_Projects(Project entity) 5996 { 5997 this.SendPropertyChanging(); 5998 entity.ParentProject = null; 5999 } 6000 6001 private void attach_ProjectPermissions(ProjectPermission entity) 6002 { 6003 this.SendPropertyChanging(); 6004 entity.Project = this; 6005 } 6006 6007 private void detach_ProjectPermissions(ProjectPermission entity) 6008 { 6009 this.SendPropertyChanging(); 6010 entity.Project = null; 6011 } 6012 } 6013 6014 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ProjectPermission")] 6015 public partial class ProjectPermission : INotifyPropertyChanging, INotifyPropertyChanged 6016 { 6017 6018 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 6019 6020 private System.Guid _ProjectId; 6021 6022 private System.Guid _GrantedUserId; 6023 6024 private System.Guid _GrantedByUserId; 6025 6026 private EntityRef<Project> _Project; 6027 6028 #region Extensibility Method Definitions 6029 partial void OnLoaded(); 6030 partial void OnValidate(System.Data.Linq.ChangeAction action); 6031 partial void OnCreated(); 6032 partial void OnProjectIdChanging(System.Guid value); 6033 partial void OnProjectIdChanged(); 6034 partial void OnGrantedUserIdChanging(System.Guid value); 6035 partial void OnGrantedUserIdChanged(); 6036 partial void OnGrantedByUserIdChanging(System.Guid value); 6037 partial void OnGrantedByUserIdChanged(); 6038 #endregion 6039 6040 public ProjectPermission() 6041 { 6042 this._Project = default(EntityRef<Project>); 6043 OnCreated(); 6044 } 6045 6046 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 6047 public System.Guid ProjectId 6048 { 6049 get 6050 { 6051 return this._ProjectId; 6052 } 6053 set 6054 { 6055 if ((this._ProjectId != value)) 6056 { 6057 if (this._Project.HasLoadedOrAssignedValue) 6058 { 6059 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 6060 } 6061 this.OnProjectIdChanging(value); 6062 this.SendPropertyChanging(); 6063 this._ProjectId = value; 6064 this.SendPropertyChanged("ProjectId"); 6065 this.OnProjectIdChanged(); 6066 } 6067 } 6068 } 6069 6070 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrantedUserId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 6071 public System.Guid GrantedUserId 6072 { 6073 get 6074 { 6075 return this._GrantedUserId; 6076 } 6077 set 6078 { 6079 if ((this._GrantedUserId != value)) 6080 { 6081 this.OnGrantedUserIdChanging(value); 6082 this.SendPropertyChanging(); 6083 this._GrantedUserId = value; 6084 this.SendPropertyChanged("GrantedUserId"); 6085 this.OnGrantedUserIdChanged(); 6086 } 6087 } 6088 } 6089 6090 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrantedByUserId", DbType="UniqueIdentifier NOT NULL")] 6091 public System.Guid GrantedByUserId 6092 { 6093 get 6094 { 6095 return this._GrantedByUserId; 6096 } 6097 set 6098 { 6099 if ((this._GrantedByUserId != value)) 6100 { 6101 this.OnGrantedByUserIdChanging(value); 6102 this.SendPropertyChanging(); 6103 this._GrantedByUserId = value; 6104 this.SendPropertyChanged("GrantedByUserId"); 6105 this.OnGrantedByUserIdChanged(); 6106 } 6107 } 6108 } 6109 6110 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_ProjectPermission", Storage="_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true, DeleteOnNull=true)] 6111 public Project Project 6112 { 6113 get 6114 { 6115 return this._Project.Entity; 6116 } 6117 set 6118 { 6119 Project previousValue = this._Project.Entity; 6120 if (((previousValue != value) 6121 || (this._Project.HasLoadedOrAssignedValue == false))) 6122 { 6123 this.SendPropertyChanging(); 6124 if ((previousValue != null)) 6125 { 6126 this._Project.Entity = null; 6127 previousValue.ProjectPermissions.Remove(this); 6128 } 6129 this._Project.Entity = value; 6130 if ((value != null)) 6131 { 6132 value.ProjectPermissions.Add(this); 6133 this._ProjectId = value.ProjectId; 6134 } 6135 else 6136 { 6137 this._ProjectId = default(System.Guid); 6138 } 6139 this.SendPropertyChanged("Project"); 6140 } 6141 } 6142 } 6143 6144 public event PropertyChangingEventHandler PropertyChanging; 6145 6146 public event PropertyChangedEventHandler PropertyChanged; 6147 6148 protected virtual void SendPropertyChanging() 6149 { 6150 if ((this.PropertyChanging != null)) 6151 { 6152 this.PropertyChanging(this, emptyChangingEventArgs); 6153 } 6154 } 6155 6156 protected virtual void SendPropertyChanged(String propertyName) 6157 { 6158 if ((this.PropertyChanged != null)) 6159 { 6160 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 6161 } 6162 } 6163 } 6164 6165 [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AssignedJobResource")] 6166 public partial class AssignedJobResource : INotifyPropertyChanging, INotifyPropertyChanged 6167 { 6168 6169 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 6170 6171 private System.Guid _ResourceId; 6172 6173 private System.Guid _JobId; 6174 6175 private EntityRef<Resource> _Resource; 6176 6177 private EntityRef<Job> _Job; 6178 6179 #region Extensibility Method Definitions 6180 partial void OnLoaded(); 6181 partial void OnValidate(System.Data.Linq.ChangeAction action); 6182 partial void OnCreated(); 6183 partial void OnResourceIdChanging(System.Guid value); 6184 partial void OnResourceIdChanged(); 6185 partial void OnJobIdChanging(System.Guid value); 6186 partial void OnJobIdChanged(); 6187 #endregion 6188 6189 public AssignedJobResource() 6190 { 6191 this._Resource = default(EntityRef<Resource>); 6192 this._Job = default(EntityRef<Job>); 6193 OnCreated(); 6194 } 6195 6196 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 6197 public System.Guid ResourceId 6198 { 6199 get 6200 { 6201 return this._ResourceId; 6202 } 6203 set 6204 { 6205 if ((this._ResourceId != value)) 6206 { 6207 if (this._Resource.HasLoadedOrAssignedValue) 6208 { 6209 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 6210 } 6211 this.OnResourceIdChanging(value); 6212 this.SendPropertyChanging(); 6213 this._ResourceId = value; 6214 this.SendPropertyChanged("ResourceId"); 6215 this.OnResourceIdChanged(); 6216 } 6217 } 6218 } 6219 6220 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 6221 public System.Guid JobId 6222 { 6223 get 6224 { 6225 return this._JobId; 6226 } 6227 set 6228 { 6229 if ((this._JobId != value)) 6230 { 6231 if (this._Job.HasLoadedOrAssignedValue) 6232 { 6233 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 6234 } 6235 this.OnJobIdChanging(value); 6236 this.SendPropertyChanging(); 6237 this._JobId = value; 6238 this.SendPropertyChanged("JobId"); 6239 this.OnJobIdChanged(); 6240 } 6241 } 6242 } 6243 6244 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedJobResource", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true)] 6245 public Resource Resource 6246 { 6247 get 6248 { 6249 return this._Resource.Entity; 6250 } 6251 set 6252 { 6253 Resource previousValue = this._Resource.Entity; 6254 if (((previousValue != value) 6255 || (this._Resource.HasLoadedOrAssignedValue == false))) 6256 { 6257 this.SendPropertyChanging(); 6258 if ((previousValue != null)) 6259 { 6260 this._Resource.Entity = null; 6261 previousValue.AssignedJobResources.Remove(this); 6262 } 6263 this._Resource.Entity = value; 6264 if ((value != null)) 6265 { 6266 value.AssignedJobResources.Add(this); 6267 this._ResourceId = value.ResourceId; 6268 } 6269 else 6270 { 6271 this._ResourceId = default(System.Guid); 6272 } 6273 this.SendPropertyChanged("Resource"); 6274 } 6275 } 6276 } 6277 6278 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Job_AssignedJobResource", Storage="_Job", ThisKey="JobId", OtherKey="JobId", IsForeignKey=true, DeleteOnNull=true)] 6279 public Job Job 6280 { 6281 get 6282 { 6283 return this._Job.Entity; 6284 } 6285 set 6286 { 6287 Job previousValue = this._Job.Entity; 6288 if (((previousValue != value) 6289 || (this._Job.HasLoadedOrAssignedValue == false))) 6290 { 6291 this.SendPropertyChanging(); 6292 if ((previousValue != null)) 6293 { 6294 this._Job.Entity = null; 6295 previousValue.AssignedJobResources.Remove(this); 6296 } 6297 this._Job.Entity = value; 6298 if ((value != null)) 6299 { 6300 value.AssignedJobResources.Add(this); 6301 this._JobId = value.JobId; 6302 } 6303 else 6304 { 6305 this._JobId = default(System.Guid); 6306 } 6307 this.SendPropertyChanged("Job"); 6308 } 6309 } 6310 } 6311 6312 public event PropertyChangingEventHandler PropertyChanging; 6313 6314 public event PropertyChangedEventHandler PropertyChanged; 6315 6316 protected virtual void SendPropertyChanging() 6317 { 6318 if ((this.PropertyChanging != null)) 6319 { 6320 this.PropertyChanging(this, emptyChangingEventArgs); 6321 } 6322 } 6323 6324 protected virtual void SendPropertyChanged(String propertyName) 6325 { 6326 if ((this.PropertyChanged != null)) 6327 { 6328 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 6329 } 6330 } 6331 } 6332 6333 [global::System.Data.Linq.Mapping.TableAttribute(Name="[statistics].FactProjectInfo")] 6334 public partial class FactProjectInfo : INotifyPropertyChanging, INotifyPropertyChanged 6335 { 6336 6337 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 6338 6339 private System.Guid _ProjectId; 6340 6341 private System.DateTime _Time; 6342 6343 private int _NumTotalCores; 6344 6345 private int _NumUsedCores; 6346 6347 private int _TotalMemory; 6348 6349 private int _UsedMemory; 6350 6351 private EntityRef<DimProject> _DimProject; 6352 6353 private EntityRef<DimTime> _DimTime; 6354 6355 #region Extensibility Method Definitions 6356 partial void OnLoaded(); 6357 partial void OnValidate(System.Data.Linq.ChangeAction action); 6358 partial void OnCreated(); 6359 partial void OnProjectIdChanging(System.Guid value); 6360 partial void OnProjectIdChanged(); 6361 partial void OnTimeChanging(System.DateTime value); 6362 partial void OnTimeChanged(); 6363 partial void OnNumTotalCoresChanging(int value); 6364 partial void OnNumTotalCoresChanged(); 6365 partial void OnNumUsedCoresChanging(int value); 6366 partial void OnNumUsedCoresChanged(); 6367 partial void OnTotalMemoryChanging(int value); 6368 partial void OnTotalMemoryChanged(); 6369 partial void OnUsedMemoryChanging(int value); 6370 partial void OnUsedMemoryChanged(); 6371 #endregion 6372 6373 public FactProjectInfo() 6374 { 6375 this._DimProject = default(EntityRef<DimProject>); 6376 this._DimTime = default(EntityRef<DimTime>); 6377 OnCreated(); 6378 } 6379 6380 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true)] 6381 public System.Guid ProjectId 6382 { 6383 get 6384 { 6385 return this._ProjectId; 6386 } 6387 set 6388 { 6389 if ((this._ProjectId != value)) 6390 { 6391 if (this._DimProject.HasLoadedOrAssignedValue) 6392 { 6393 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 6394 } 6395 this.OnProjectIdChanging(value); 6396 this.SendPropertyChanging(); 6397 this._ProjectId = value; 6398 this.SendPropertyChanged("ProjectId"); 6399 this.OnProjectIdChanged(); 6400 } 6401 } 6402 } 6403 6404 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Time", DbType="DateTime NOT NULL", IsPrimaryKey=true)] 6405 public System.DateTime Time 6406 { 6407 get 6408 { 6409 return this._Time; 6410 } 6411 set 6412 { 6413 if ((this._Time != value)) 6414 { 6415 if (this._DimTime.HasLoadedOrAssignedValue) 6416 { 6417 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 6418 } 6419 this.OnTimeChanging(value); 6420 this.SendPropertyChanging(); 6421 this._Time = value; 6422 this.SendPropertyChanged("Time"); 6423 this.OnTimeChanged(); 6424 } 6425 } 6426 } 6427 6428 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumTotalCores", DbType="Int NOT NULL")] 6429 public int NumTotalCores 6430 { 6431 get 6432 { 6433 return this._NumTotalCores; 6434 } 6435 set 6436 { 6437 if ((this._NumTotalCores != value)) 6438 { 6439 this.OnNumTotalCoresChanging(value); 6440 this.SendPropertyChanging(); 6441 this._NumTotalCores = value; 6442 this.SendPropertyChanged("NumTotalCores"); 6443 this.OnNumTotalCoresChanged(); 6444 } 6445 } 6446 } 6447 6448 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumUsedCores", DbType="Int NOT NULL")] 6449 public int NumUsedCores 6450 { 6451 get 6452 { 6453 return this._NumUsedCores; 6454 } 6455 set 6456 { 6457 if ((this._NumUsedCores != value)) 6458 { 6459 this.OnNumUsedCoresChanging(value); 6460 this.SendPropertyChanging(); 6461 this._NumUsedCores = value; 6462 this.SendPropertyChanged("NumUsedCores"); 6463 this.OnNumUsedCoresChanged(); 6464 } 6465 } 6466 } 6467 6468 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalMemory", DbType="Int NOT NULL")] 6469 public int TotalMemory 6470 { 6471 get 6472 { 6473 return this._TotalMemory; 6474 } 6475 set 6476 { 6477 if ((this._TotalMemory != value)) 6478 { 6479 this.OnTotalMemoryChanging(value); 6480 this.SendPropertyChanging(); 6481 this._TotalMemory = value; 6482 this.SendPropertyChanged("TotalMemory"); 6483 this.OnTotalMemoryChanged(); 6484 } 6485 } 6486 } 6487 6488 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsedMemory", DbType="Int NOT NULL")] 6489 public int UsedMemory 6490 { 6491 get 6492 { 6493 return this._UsedMemory; 6494 } 6495 set 6496 { 6497 if ((this._UsedMemory != value)) 6498 { 6499 this.OnUsedMemoryChanging(value); 6500 this.SendPropertyChanging(); 6501 this._UsedMemory = value; 6502 this.SendPropertyChanged("UsedMemory"); 6503 this.OnUsedMemoryChanged(); 6504 } 6505 } 6506 } 6507 6508 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DimProject_FactProjectInfo", Storage="_DimProject", ThisKey="ProjectId", OtherKey="Id", IsForeignKey=true)] 6509 public DimProject DimProject 6510 { 6511 get 6512 { 6513 return this._DimProject.Entity; 6514 } 6515 set 6516 { 6517 DimProject previousValue = this._DimProject.Entity; 6518 if (((previousValue != value) 6519 || (this._DimProject.HasLoadedOrAssignedValue == false))) 6520 { 6521 this.SendPropertyChanging(); 6522 if ((previousValue != null)) 6523 { 6524 this._DimProject.Entity = null; 6525 previousValue.FactProjectInfos.Remove(this); 6526 } 6527 this._DimProject.Entity = value; 6528 if ((value != null)) 6529 { 6530 value.FactProjectInfos.Add(this); 6531 this._ProjectId = value.Id; 6532 } 6533 else 6534 { 6535 this._ProjectId = default(System.Guid); 6536 } 6537 this.SendPropertyChanged("DimProject"); 6538 } 6539 } 6540 } 6541 6542 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DimTime_FactProjectInfo", Storage="_DimTime", ThisKey="Time", OtherKey="Time", IsForeignKey=true)] 6543 public DimTime DimTime 6544 { 6545 get 6546 { 6547 return this._DimTime.Entity; 6548 } 6549 set 6550 { 6551 DimTime previousValue = this._DimTime.Entity; 6552 if (((previousValue != value) 6553 || (this._DimTime.HasLoadedOrAssignedValue == false))) 6554 { 6555 this.SendPropertyChanging(); 6556 if ((previousValue != null)) 6557 { 6558 this._DimTime.Entity = null; 6559 previousValue.FactProjectInfos.Remove(this); 6560 } 6561 this._DimTime.Entity = value; 6562 if ((value != null)) 6563 { 6564 value.FactProjectInfos.Add(this); 6565 this._Time = value.Time; 6566 } 6567 else 6568 { 6569 this._Time = default(System.DateTime); 6570 } 6571 this.SendPropertyChanged("DimTime"); 6572 } 6573 } 6574 } 6575 6576 public event PropertyChangingEventHandler PropertyChanging; 6577 6578 public event PropertyChangedEventHandler PropertyChanged; 6579 6580 protected virtual void SendPropertyChanging() 6581 { 6582 if ((this.PropertyChanging != null)) 6583 { 6584 this.PropertyChanging(this, emptyChangingEventArgs); 6585 } 6586 } 6587 6588 protected virtual void SendPropertyChanged(String propertyName) 6589 { 6590 if ((this.PropertyChanged != null)) 6591 { 6592 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 6593 } 6594 } 6595 } 6596 6597 [global::System.Data.Linq.Mapping.TableAttribute(Name="[statistics].DimProject")] 6598 public partial class DimProject : INotifyPropertyChanging, INotifyPropertyChanged 6599 { 6600 6601 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 6602 6603 private System.Guid _Id; 6604 6605 private System.Guid _ProjectId; 6606 6607 private System.Nullable<System.Guid> _ParentId; 6608 6609 private string _Name; 6610 6611 private string _Description; 6612 6613 private System.Guid _OwnerUserId; 6614 6615 private System.DateTime _StartDate; 6616 6617 private System.Nullable<System.DateTime> _EndDate; 6618 6619 private System.DateTime _DateCreated; 6620 6621 private System.Nullable<System.DateTime> _DateExpired; 6622 6623 private EntitySet<DimJob> _DimJobs; 6624 6625 private EntitySet<FactProjectInfo> _FactProjectInfos; 6626 6627 #region Extensibility Method Definitions 6628 partial void OnLoaded(); 6629 partial void OnValidate(System.Data.Linq.ChangeAction action); 6630 partial void OnCreated(); 6631 partial void OnIdChanging(System.Guid value); 6632 partial void OnIdChanged(); 6633 partial void OnProjectIdChanging(System.Guid value); 6634 partial void OnProjectIdChanged(); 6635 partial void OnParentProjectIdChanging(System.Nullable<System.Guid> value); 6636 partial void OnParentProjectIdChanged(); 6637 partial void OnNameChanging(string value); 6638 partial void OnNameChanged(); 6639 partial void OnDescriptionChanging(string value); 6640 partial void OnDescriptionChanged(); 6641 partial void OnOwnerUserIdChanging(System.Guid value); 6642 partial void OnOwnerUserIdChanged(); 6643 partial void OnStartDateChanging(System.DateTime value); 6644 partial void OnStartDateChanged(); 6645 partial void OnEndDateChanging(System.Nullable<System.DateTime> value); 6646 partial void OnEndDateChanged(); 6647 partial void OnDateCreatedChanging(System.DateTime value); 6648 partial void OnDateCreatedChanged(); 6649 partial void OnDateExpiredChanging(System.Nullable<System.DateTime> value); 6650 partial void OnDateExpiredChanged(); 6651 #endregion 6652 6653 public DimProject() 6654 { 6655 this._DimJobs = new EntitySet<DimJob>(new Action<DimJob>(this.attach_DimJobs), new Action<DimJob>(this.detach_DimJobs)); 6656 this._FactProjectInfos = new EntitySet<FactProjectInfo>(new Action<FactProjectInfo>(this.attach_FactProjectInfos), new Action<FactProjectInfo>(this.detach_FactProjectInfos)); 6657 OnCreated(); 6658 } 6659 6660 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] 6661 public System.Guid Id 6662 { 6663 get 6664 { 6665 return this._Id; 6666 } 6667 set 6668 { 6669 if ((this._Id != value)) 6670 { 6671 this.OnIdChanging(value); 6672 this.SendPropertyChanging(); 6673 this._Id = value; 6674 this.SendPropertyChanged("Id"); 6675 this.OnIdChanged(); 6676 } 6677 } 6678 } 6679 6680 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="UniqueIdentifier NOT NULL")] 6681 public System.Guid ProjectId 6682 { 6683 get 6684 { 6685 return this._ProjectId; 6686 } 6687 set 6688 { 6689 if ((this._ProjectId != value)) 6690 { 6691 this.OnProjectIdChanging(value); 6692 this.SendPropertyChanging(); 6693 this._ProjectId = value; 6694 this.SendPropertyChanged("ProjectId"); 6695 this.OnProjectIdChanged(); 6696 } 6697 } 6698 } 6699 6700 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentId", DbType="UniqueIdentifier")] 6701 public System.Nullable<System.Guid> ParentProjectId 6702 { 6703 get 6704 { 6705 return this._ParentId; 6706 } 6707 set 6708 { 6709 if ((this._ParentId != value)) 6710 { 6711 this.OnParentProjectIdChanging(value); 6712 this.SendPropertyChanging(); 6713 this._ParentId = value; 6714 this.SendPropertyChanged("ParentProjectId"); 6715 this.OnParentProjectIdChanged(); 6716 } 6717 } 6718 } 6719 6720 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", CanBeNull=false)] 6721 public string Name 6722 { 6723 get 6724 { 6725 return this._Name; 6726 } 6727 set 6728 { 6729 if ((this._Name != value)) 6730 { 6731 this.OnNameChanging(value); 6732 this.SendPropertyChanging(); 6733 this._Name = value; 6734 this.SendPropertyChanged("Name"); 6735 this.OnNameChanged(); 6736 } 6737 } 6738 } 6739 6740 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description")] 6741 public string Description 6742 { 6743 get 6744 { 6745 return this._Description; 6746 } 6747 set 6748 { 6749 if ((this._Description != value)) 6750 { 6751 this.OnDescriptionChanging(value); 6752 this.SendPropertyChanging(); 6753 this._Description = value; 6754 this.SendPropertyChanged("Description"); 6755 this.OnDescriptionChanged(); 6756 } 6757 } 6758 } 6759 6760 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OwnerUserId", DbType="UniqueIdentifier NOT NULL")] 6761 public System.Guid OwnerUserId 6762 { 6763 get 6764 { 6765 return this._OwnerUserId; 6766 } 6767 set 6768 { 6769 if ((this._OwnerUserId != value)) 6770 { 6771 this.OnOwnerUserIdChanging(value); 6772 this.SendPropertyChanging(); 6773 this._OwnerUserId = value; 6774 this.SendPropertyChanged("OwnerUserId"); 6775 this.OnOwnerUserIdChanged(); 6776 } 6777 } 6778 } 6779 6780 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime NOT NULL")] 6781 public System.DateTime StartDate 6782 { 6783 get 6784 { 6785 return this._StartDate; 6786 } 6787 set 6788 { 6789 if ((this._StartDate != value)) 6790 { 6791 this.OnStartDateChanging(value); 6792 this.SendPropertyChanging(); 6793 this._StartDate = value; 6794 this.SendPropertyChanged("StartDate"); 6795 this.OnStartDateChanged(); 6796 } 6797 } 6798 } 6799 6800 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")] 6801 public System.Nullable<System.DateTime> EndDate 6802 { 6803 get 6804 { 6805 return this._EndDate; 6806 } 6807 set 6808 { 6809 if ((this._EndDate != value)) 6810 { 6811 this.OnEndDateChanging(value); 6812 this.SendPropertyChanging(); 6813 this._EndDate = value; 6814 this.SendPropertyChanged("EndDate"); 6815 this.OnEndDateChanged(); 6816 } 6817 } 6818 } 6819 6820 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated", DbType="DateTime NOT NULL")] 6821 public System.DateTime DateCreated 6822 { 6823 get 6824 { 6825 return this._DateCreated; 6826 } 6827 set 6828 { 6829 if ((this._DateCreated != value)) 6830 { 6831 this.OnDateCreatedChanging(value); 6832 this.SendPropertyChanging(); 6833 this._DateCreated = value; 6834 this.SendPropertyChanged("DateCreated"); 6835 this.OnDateCreatedChanged(); 6836 } 6837 } 6838 } 6839 6840 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateExpired", DbType="DateTime")] 6841 public System.Nullable<System.DateTime> DateExpired 6842 { 6843 get 6844 { 6845 return this._DateExpired; 6846 } 6847 set 6848 { 6849 if ((this._DateExpired != value)) 6850 { 6851 this.OnDateExpiredChanging(value); 6852 this.SendPropertyChanging(); 6853 this._DateExpired = value; 6854 this.SendPropertyChanged("DateExpired"); 6855 this.OnDateExpiredChanged(); 6856 } 6857 } 6858 } 6859 6860 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DimProject_DimJob", Storage="_DimJobs", ThisKey="Id", OtherKey="ProjectId")] 6861 public EntitySet<DimJob> DimJobs 6862 { 6863 get 6864 { 6865 return this._DimJobs; 6866 } 6867 set 6868 { 6869 this._DimJobs.Assign(value); 6870 } 6871 } 6872 6873 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="DimProject_FactProjectInfo", Storage="_FactProjectInfos", ThisKey="Id", OtherKey="ProjectId")] 6874 public EntitySet<FactProjectInfo> FactProjectInfos 6875 { 6876 get 6877 { 6878 return this._FactProjectInfos; 6879 } 6880 set 6881 { 6882 this._FactProjectInfos.Assign(value); 6883 } 6884 } 6885 6886 public event PropertyChangingEventHandler PropertyChanging; 6887 6888 public event PropertyChangedEventHandler PropertyChanged; 6889 6890 protected virtual void SendPropertyChanging() 6891 { 6892 if ((this.PropertyChanging != null)) 6893 { 6894 this.PropertyChanging(this, emptyChangingEventArgs); 6895 } 6896 } 6897 6898 protected virtual void SendPropertyChanged(String propertyName) 6899 { 6900 if ((this.PropertyChanged != null)) 6901 { 6902 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 6903 } 6904 } 6905 6906 private void attach_DimJobs(DimJob entity) 6907 { 6908 this.SendPropertyChanging(); 6909 entity.DimProject = this; 6910 } 6911 6912 private void detach_DimJobs(DimJob entity) 6913 { 6914 this.SendPropertyChanging(); 6915 entity.DimProject = null; 6916 } 6917 6918 private void attach_FactProjectInfos(FactProjectInfo entity) 6919 { 6920 this.SendPropertyChanging(); 6921 entity.DimProject = this; 6922 } 6923 6924 private void detach_FactProjectInfos(FactProjectInfo entity) 6925 { 6926 this.SendPropertyChanging(); 6927 entity.DimProject = null; 6928 } 6929 } 5609 6930 } 5610 6931 #pragma warning restore 1591
Note: See TracChangeset
for help on using the changeset viewer.