Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/14/10 20:59:36 (14 years ago)
Author:
kgrading
Message:

added the calendar in the dal and the server console. Works on every Resource (Group / Client) (#908)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.LINQDataAccess/3.2/Hive.designer.cs

    r3018 r3022  
    6464    partial void UpdateJob(Job instance);
    6565    partial void DeleteJob(Job instance);
     66    partial void InsertUptimeCalendar(UptimeCalendar instance);
     67    partial void UpdateUptimeCalendar(UptimeCalendar instance);
     68    partial void DeleteUptimeCalendar(UptimeCalendar instance);
    6669    #endregion
    6770   
     
    181184      {
    182185        return this.GetTable<Job>();
     186      }
     187    }
     188   
     189    public System.Data.Linq.Table<UptimeCalendar> UptimeCalendars
     190    {
     191      get
     192      {
     193        return this.GetTable<UptimeCalendar>();
    183194      }
    184195    }
     
    604615    }
    605616   
    606     [Column(Storage="_UpDownTimeCalendar", DbType="Xml", CanBeNull=true, UpdateCheck=UpdateCheck.Never)]
     617    [Column(Storage="_UpDownTimeCalendar", DbType="Xml", UpdateCheck=UpdateCheck.Never)]
    607618    public System.Xml.Linq.XElement UpDownTimeCalendar
    608619    {
     
    14991510    private EntityRef<Client> _Client;
    15001511   
     1512    private EntitySet<UptimeCalendar> _UptimeCalendars;
     1513   
    15011514    #region Extensibility Method Definitions
    15021515    partial void OnLoaded();
     
    15151528      this._ClientGroup_Resources = new EntitySet<ClientGroup_Resource>(new Action<ClientGroup_Resource>(this.attach_ClientGroup_Resources), new Action<ClientGroup_Resource>(this.detach_ClientGroup_Resources));
    15161529      this._Client = default(EntityRef<Client>);
     1530      this._UptimeCalendars = new EntitySet<UptimeCalendar>(new Action<UptimeCalendar>(this.attach_UptimeCalendars), new Action<UptimeCalendar>(this.detach_UptimeCalendars));
    15171531      OnCreated();
    15181532    }
     
    16421656    }
    16431657   
     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   
    16441671    public event PropertyChangingEventHandler PropertyChanging;
    16451672   
     
    16811708   
    16821709    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)
    16831722    {
    16841723      this.SendPropertyChanging();
     
    22782317    }
    22792318   
    2280     [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", CanBeNull=true, UpdateCheck=UpdateCheck.Never)]
     2319    [Column(Storage="_SerializedJob", DbType="VarBinary(MAX)", UpdateCheck=UpdateCheck.Never)]
    22812320    public System.Data.Linq.Binary SerializedJob
    22822321    {
     
    26592698    }
    26602699  }
     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  }
    26612947}
    26622948#pragma warning restore 1591
Note: See TracChangeset for help on using the changeset viewer.