Changeset 3022 for trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess
- Timestamp:
- 03/14/10 20:59:36 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/HeuristicLab.Hive.Server.LINQDataAccess-3.2.csproj ¶
r3011 r3022 105 105 <DependentUpon>Settings.settings</DependentUpon> 106 106 </Compile> 107 <Compile Include="UptimeCalendarDao.cs" /> 107 108 </ItemGroup> 108 109 <ItemGroup> -
TabularUnified trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.dbml ¶
r3018 r3022 77 77 <Association Name="Resource_ClientGroup_Resource" Member="ClientGroup_Resources" ThisKey="ResourceId" OtherKey="ResourceId" Type="ClientGroup_Resource" /> 78 78 <Association Name="Resource_Client" Member="Client" ThisKey="ResourceId" OtherKey="ResourceId" Type="Client" Cardinality="One" /> 79 <Association Name="Resource_UptimeCalendar" Member="UptimeCalendars" ThisKey="ResourceId" OtherKey="ResourceId" Type="UptimeCalendar" /> 79 80 </Type> 80 81 </Table> … … 120 121 </Type> 121 122 </Table> 123 <Table Name="dbo.UptimeCalendar" Member="UptimeCalendars"> 124 <Type Name="UptimeCalendar"> 125 <Column Name="UptimeCalendarId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" /> 126 <Column Name="ResourceId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" /> 127 <Column Name="StartDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" /> 128 <Column Name="EndDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" /> 129 <Column Name="AllDayEvent" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" /> 130 <Column Name="Recurring" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" /> 131 <Column Name="RecurringId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="false" /> 132 <Association Name="Resource_UptimeCalendar" Member="Resource" ThisKey="ResourceId" OtherKey="ResourceId" Type="Resource" IsForeignKey="true" DeleteRule="CASCADE" DeleteOnNull="true" /> 133 </Type> 134 </Table> 122 135 </Database> -
TabularUnified trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.dbml.layout ¶
r3018 r3022 71 71 </nodes> 72 72 </associationConnector> 73 <associationConnector edgePoints="[(4. 4375 : 5.75); (4.4375 : 5.1362939453125)]" fixedFrom="NotFixed" fixedTo="NotFixed">73 <associationConnector edgePoints="[(4.78125 : 5.75); (4.78125 : 5.1362939453125)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 74 74 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_AssignedResource" /> 75 75 <nodes> … … 105 105 </nodes> 106 106 </associationConnector> 107 <associationConnector edgePoints="[(4. 5 : 6.94399251302083); (4.5 : 7.625)]" fixedFrom="NotFixed" fixedTo="NotFixed">107 <associationConnector edgePoints="[(4.78125 : 6.94399251302083); (4.78125 : 7.625)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 108 108 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_Client" /> 109 109 <nodes> … … 125 125 </nestedChildShapes> 126 126 </classShape> 127 <associationConnector edgePoints="[(10 : 6.5); (10 : 4.34375); (5.5 : 4.34375)]" fixedFrom=" Algorithm" fixedTo="Algorithm">127 <associationConnector edgePoints="[(10 : 6.5); (10 : 4.34375); (5.5 : 4.34375)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 128 128 <AssociationMoniker Name="/HiveDataContext/Job/Job_AssignedResource" /> 129 129 <nodes> … … 132 132 </nodes> 133 133 </associationConnector> 134 <associationConnector edgePoints="[(11 : 9.37580485026042); (12 : 9.37580485026042)]" fixedFrom=" Algorithm" fixedTo="Algorithm">134 <associationConnector edgePoints="[(11 : 9.37580485026042); (12 : 9.37580485026042)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 135 135 <AssociationMoniker Name="/HiveDataContext/Job/Job_RequiredPlugin" /> 136 136 <nodes> … … 139 139 </nodes> 140 140 </associationConnector> 141 <associationConnector edgePoints="[(5.625 : 8.91270182291667); (9 : 8.91270182291667)]" fixedFrom=" Algorithm" fixedTo="Algorithm">141 <associationConnector edgePoints="[(5.625 : 8.91270182291667); (9 : 8.91270182291667)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 142 142 <AssociationMoniker Name="/HiveDataContext/Client/Client_Job" /> 143 143 <nodes> … … 153 153 </nodes> 154 154 </associationConnector> 155 <associationConnector edgePoints="[(8.25 : 11.0969962565104); (9.32336288461538 : 11.0969962565104); (9.32336288461538 : 10.0016097005208)]" fixedFrom=" Algorithm" fixedTo="Algorithm">155 <associationConnector edgePoints="[(8.25 : 11.0969962565104); (9.32336288461538 : 11.0969962565104); (9.32336288461538 : 10.0016097005208)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 156 156 <AssociationMoniker Name="/HiveDataContext/Project/Project_Job" /> 157 157 <nodes> … … 160 160 </nodes> 161 161 </associationConnector> 162 <classShape Id="9ae82b5f-6e47-4a8e-8350-f7312381bb3b" absoluteBounds="0.625, 5.125, 2, 2.1554996744791666"> 163 <DataClassMoniker Name="/HiveDataContext/UptimeCalendar" /> 164 <nestedChildShapes> 165 <elementListCompartment Id="7469c6a3-4cb2-41c2-82b9-6999782218dd" absoluteBounds="0.64000000000000012, 5.585, 1.9700000000000002, 1.5954996744791665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 166 </nestedChildShapes> 167 </classShape> 168 <associationConnector edgePoints="[(3.375 : 6.34699625651042); (2.625 : 6.34699625651042)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 169 <AssociationMoniker Name="/HiveDataContext/Resource/Resource_UptimeCalendar" /> 170 <nodes> 171 <classShapeMoniker Id="e44e8355-4290-42f0-8b46-4473e91e504b" /> 172 <classShapeMoniker Id="9ae82b5f-6e47-4a8e-8350-f7312381bb3b" /> 173 </nodes> 174 </associationConnector> 162 175 </nestedChildShapes> 163 176 </ordesignerObjectsDiagram> -
TabularUnified trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.designer.cs ¶
r3018 r3022 64 64 partial void UpdateJob(Job instance); 65 65 partial void DeleteJob(Job instance); 66 partial void InsertUptimeCalendar(UptimeCalendar instance); 67 partial void UpdateUptimeCalendar(UptimeCalendar instance); 68 partial void DeleteUptimeCalendar(UptimeCalendar instance); 66 69 #endregion 67 70 … … 181 184 { 182 185 return this.GetTable<Job>(); 186 } 187 } 188 189 public System.Data.Linq.Table<UptimeCalendar> UptimeCalendars 190 { 191 get 192 { 193 return this.GetTable<UptimeCalendar>(); 183 194 } 184 195 } … … 604 615 } 605 616 606 [Column(Storage="_UpDownTimeCalendar", DbType="Xml", CanBeNull=true,UpdateCheck=UpdateCheck.Never)]617 [Column(Storage="_UpDownTimeCalendar", DbType="Xml", UpdateCheck=UpdateCheck.Never)] 607 618 public System.Xml.Linq.XElement UpDownTimeCalendar 608 619 { … … 1499 1510 private EntityRef<Client> _Client; 1500 1511 1512 private EntitySet<UptimeCalendar> _UptimeCalendars; 1513 1501 1514 #region Extensibility Method Definitions 1502 1515 partial void OnLoaded(); … … 1515 1528 this._ClientGroup_Resources = new EntitySet<ClientGroup_Resource>(new Action<ClientGroup_Resource>(this.attach_ClientGroup_Resources), new Action<ClientGroup_Resource>(this.detach_ClientGroup_Resources)); 1516 1529 this._Client = default(EntityRef<Client>); 1530 this._UptimeCalendars = new EntitySet<UptimeCalendar>(new Action<UptimeCalendar>(this.attach_UptimeCalendars), new Action<UptimeCalendar>(this.detach_UptimeCalendars)); 1517 1531 OnCreated(); 1518 1532 } … … 1642 1656 } 1643 1657 1658 [Association(Name="Resource_UptimeCalendar", Storage="_UptimeCalendars", ThisKey="ResourceId", OtherKey="ResourceId")] 1659 public EntitySet<UptimeCalendar> UptimeCalendars 1660 { 1661 get 1662 { 1663 return this._UptimeCalendars; 1664 } 1665 set 1666 { 1667 this._UptimeCalendars.Assign(value); 1668 } 1669 } 1670 1644 1671 public event PropertyChangingEventHandler PropertyChanging; 1645 1672 … … 1681 1708 1682 1709 private void detach_ClientGroup_Resources(ClientGroup_Resource entity) 1710 { 1711 this.SendPropertyChanging(); 1712 entity.Resource = null; 1713 } 1714 1715 private void attach_UptimeCalendars(UptimeCalendar entity) 1716 { 1717 this.SendPropertyChanging(); 1718 entity.Resource = this; 1719 } 1720 1721 private void detach_UptimeCalendars(UptimeCalendar entity) 1683 1722 { 1684 1723 this.SendPropertyChanging(); … … 2278 2317 } 2279 2318 2280 [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", CanBeNull=true,UpdateCheck=UpdateCheck.Never)]2319 [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", UpdateCheck=UpdateCheck.Never)] 2281 2320 public System.Data.Linq.Binary SerializedJob 2282 2321 { … … 2659 2698 } 2660 2699 } 2700 2701 [Table(Name="dbo.UptimeCalendar")] 2702 public partial class UptimeCalendar : INotifyPropertyChanging, INotifyPropertyChanged 2703 { 2704 2705 private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); 2706 2707 private System.Guid _UptimeCalendarId; 2708 2709 private System.Guid _ResourceId; 2710 2711 private System.DateTime _StartDate; 2712 2713 private System.DateTime _EndDate; 2714 2715 private bool _AllDayEvent; 2716 2717 private bool _Recurring; 2718 2719 private System.Guid _RecurringId; 2720 2721 private EntityRef<Resource> _Resource; 2722 2723 #region Extensibility Method Definitions 2724 partial void OnLoaded(); 2725 partial void OnValidate(System.Data.Linq.ChangeAction action); 2726 partial void OnCreated(); 2727 partial void OnUptimeCalendarIdChanging(System.Guid value); 2728 partial void OnUptimeCalendarIdChanged(); 2729 partial void OnResourceIdChanging(System.Guid value); 2730 partial void OnResourceIdChanged(); 2731 partial void OnStartDateChanging(System.DateTime value); 2732 partial void OnStartDateChanged(); 2733 partial void OnEndDateChanging(System.DateTime value); 2734 partial void OnEndDateChanged(); 2735 partial void OnAllDayEventChanging(bool value); 2736 partial void OnAllDayEventChanged(); 2737 partial void OnRecurringChanging(bool value); 2738 partial void OnRecurringChanged(); 2739 partial void OnRecurringIdChanging(System.Guid value); 2740 partial void OnRecurringIdChanged(); 2741 #endregion 2742 2743 public UptimeCalendar() 2744 { 2745 this._Resource = default(EntityRef<Resource>); 2746 OnCreated(); 2747 } 2748 2749 [Column(Storage="_UptimeCalendarId", AutoSync=AutoSync.OnInsert, DbType="UniqueIdentifier NOT NULL", IsPrimaryKey=true, IsDbGenerated=true)] 2750 public System.Guid UptimeCalendarId 2751 { 2752 get 2753 { 2754 return this._UptimeCalendarId; 2755 } 2756 set 2757 { 2758 if ((this._UptimeCalendarId != value)) 2759 { 2760 this.OnUptimeCalendarIdChanging(value); 2761 this.SendPropertyChanging(); 2762 this._UptimeCalendarId = value; 2763 this.SendPropertyChanged("UptimeCalendarId"); 2764 this.OnUptimeCalendarIdChanged(); 2765 } 2766 } 2767 } 2768 2769 [Column(Storage="_ResourceId", DbType="UniqueIdentifier NOT NULL")] 2770 public System.Guid ResourceId 2771 { 2772 get 2773 { 2774 return this._ResourceId; 2775 } 2776 set 2777 { 2778 if ((this._ResourceId != value)) 2779 { 2780 if (this._Resource.HasLoadedOrAssignedValue) 2781 { 2782 throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); 2783 } 2784 this.OnResourceIdChanging(value); 2785 this.SendPropertyChanging(); 2786 this._ResourceId = value; 2787 this.SendPropertyChanged("ResourceId"); 2788 this.OnResourceIdChanged(); 2789 } 2790 } 2791 } 2792 2793 [Column(Storage="_StartDate", DbType="DateTime NOT NULL")] 2794 public System.DateTime StartDate 2795 { 2796 get 2797 { 2798 return this._StartDate; 2799 } 2800 set 2801 { 2802 if ((this._StartDate != value)) 2803 { 2804 this.OnStartDateChanging(value); 2805 this.SendPropertyChanging(); 2806 this._StartDate = value; 2807 this.SendPropertyChanged("StartDate"); 2808 this.OnStartDateChanged(); 2809 } 2810 } 2811 } 2812 2813 [Column(Storage="_EndDate", DbType="DateTime NOT NULL")] 2814 public System.DateTime EndDate 2815 { 2816 get 2817 { 2818 return this._EndDate; 2819 } 2820 set 2821 { 2822 if ((this._EndDate != value)) 2823 { 2824 this.OnEndDateChanging(value); 2825 this.SendPropertyChanging(); 2826 this._EndDate = value; 2827 this.SendPropertyChanged("EndDate"); 2828 this.OnEndDateChanged(); 2829 } 2830 } 2831 } 2832 2833 [Column(Storage="_AllDayEvent", DbType="Bit NOT NULL")] 2834 public bool AllDayEvent 2835 { 2836 get 2837 { 2838 return this._AllDayEvent; 2839 } 2840 set 2841 { 2842 if ((this._AllDayEvent != value)) 2843 { 2844 this.OnAllDayEventChanging(value); 2845 this.SendPropertyChanging(); 2846 this._AllDayEvent = value; 2847 this.SendPropertyChanged("AllDayEvent"); 2848 this.OnAllDayEventChanged(); 2849 } 2850 } 2851 } 2852 2853 [Column(Storage="_Recurring", DbType="Bit NOT NULL")] 2854 public bool Recurring 2855 { 2856 get 2857 { 2858 return this._Recurring; 2859 } 2860 set 2861 { 2862 if ((this._Recurring != value)) 2863 { 2864 this.OnRecurringChanging(value); 2865 this.SendPropertyChanging(); 2866 this._Recurring = value; 2867 this.SendPropertyChanged("Recurring"); 2868 this.OnRecurringChanged(); 2869 } 2870 } 2871 } 2872 2873 [Column(Storage="_RecurringId", DbType="UniqueIdentifier")] 2874 public System.Guid RecurringId 2875 { 2876 get 2877 { 2878 return this._RecurringId; 2879 } 2880 set 2881 { 2882 if ((this._RecurringId != value)) 2883 { 2884 this.OnRecurringIdChanging(value); 2885 this.SendPropertyChanging(); 2886 this._RecurringId = value; 2887 this.SendPropertyChanged("RecurringId"); 2888 this.OnRecurringIdChanged(); 2889 } 2890 } 2891 } 2892 2893 [Association(Name="Resource_UptimeCalendar", Storage="_Resource", ThisKey="ResourceId", OtherKey="ResourceId", IsForeignKey=true, DeleteOnNull=true, DeleteRule="CASCADE")] 2894 public Resource Resource 2895 { 2896 get 2897 { 2898 return this._Resource.Entity; 2899 } 2900 set 2901 { 2902 Resource previousValue = this._Resource.Entity; 2903 if (((previousValue != value) 2904 || (this._Resource.HasLoadedOrAssignedValue == false))) 2905 { 2906 this.SendPropertyChanging(); 2907 if ((previousValue != null)) 2908 { 2909 this._Resource.Entity = null; 2910 previousValue.UptimeCalendars.Remove(this); 2911 } 2912 this._Resource.Entity = value; 2913 if ((value != null)) 2914 { 2915 value.UptimeCalendars.Add(this); 2916 this._ResourceId = value.ResourceId; 2917 } 2918 else 2919 { 2920 this._ResourceId = default(System.Guid); 2921 } 2922 this.SendPropertyChanged("Resource"); 2923 } 2924 } 2925 } 2926 2927 public event PropertyChangingEventHandler PropertyChanging; 2928 2929 public event PropertyChangedEventHandler PropertyChanged; 2930 2931 protected virtual void SendPropertyChanging() 2932 { 2933 if ((this.PropertyChanging != null)) 2934 { 2935 this.PropertyChanging(this, emptyChangingEventArgs); 2936 } 2937 } 2938 2939 protected virtual void SendPropertyChanged(String propertyName) 2940 { 2941 if ((this.PropertyChanged != null)) 2942 { 2943 this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 2944 } 2945 } 2946 } 2661 2947 } 2662 2948 #pragma warning restore 1591
Note: See TracChangeset
for help on using the changeset viewer.