Beispiel #1
0
        /// <summary>
        /// Create a new CarScheduling object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="allDay">Initial value of the AllDay property.</param>
        public static CarScheduling CreateCarScheduling(global::System.Int32 id, global::System.Boolean allDay)
        {
            CarScheduling carScheduling = new CarScheduling();

            carScheduling.ID     = id;
            carScheduling.AllDay = allDay;
            return(carScheduling);
        }
Beispiel #2
0
 public void InsertCarScheduling(CarScheduling carScheduling)
 {
     if ((carScheduling.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(carScheduling, EntityState.Added);
     }
     else
     {
         this.ObjectContext.CarScheduling.AddObject(carScheduling);
     }
 }
Beispiel #3
0
 public void DeleteCarScheduling(CarScheduling carScheduling)
 {
     if ((carScheduling.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(carScheduling, EntityState.Deleted);
     }
     else
     {
         this.ObjectContext.CarScheduling.Attach(carScheduling);
         this.ObjectContext.CarScheduling.DeleteObject(carScheduling);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CarScheduling EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCarScheduling(CarScheduling carScheduling)
 {
     base.AddObject("CarScheduling", carScheduling);
 }
Beispiel #5
0
 public void UpdateCarScheduling(CarScheduling currentCarScheduling)
 {
     this.ObjectContext.CarScheduling.AttachAsModified(currentCarScheduling, this.ChangeSet.GetOriginal(currentCarScheduling));
 }