/// <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); }
public void InsertCarScheduling(CarScheduling carScheduling) { if ((carScheduling.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(carScheduling, EntityState.Added); } else { this.ObjectContext.CarScheduling.AddObject(carScheduling); } }
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); } }
/// <summary> /// Deprecated Method for adding a new object to the CarScheduling EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCarScheduling(CarScheduling carScheduling) { base.AddObject("CarScheduling", carScheduling); }
public void UpdateCarScheduling(CarScheduling currentCarScheduling) { this.ObjectContext.CarScheduling.AttachAsModified(currentCarScheduling, this.ChangeSet.GetOriginal(currentCarScheduling)); }