public void InsertCis_Obec(Cis_Obec cis_Obec) { if ((cis_Obec.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(cis_Obec, EntityState.Added); } else { this.ObjectContext.Cis_Obec.AddObject(cis_Obec); } }
public void DeleteCis_Obec(Cis_Obec cis_Obec) { if ((cis_Obec.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(cis_Obec, EntityState.Deleted); } else { this.ObjectContext.Cis_Obec.Attach(cis_Obec); this.ObjectContext.Cis_Obec.DeleteObject(cis_Obec); } }
public void UpdateCis_Obec(Cis_Obec currentCis_Obec) { this.ObjectContext.Cis_Obec.AttachAsModified(currentCis_Obec, this.ChangeSet.GetOriginal(currentCis_Obec)); }
/// <summary> /// Create a new Cis_Obec object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="latitude">Initial value of the Latitude property.</param> /// <param name="longitude">Initial value of the Longitude property.</param> public static Cis_Obec CreateCis_Obec(global::System.Int32 id, global::System.Single latitude, global::System.Single longitude) { Cis_Obec cis_Obec = new Cis_Obec(); cis_Obec.Id = id; cis_Obec.Latitude = latitude; cis_Obec.Longitude = longitude; return cis_Obec; }
/// <summary> /// Deprecated Method for adding a new object to the Cis_Obec EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCis_Obec(Cis_Obec cis_Obec) { base.AddObject("Cis_Obec", cis_Obec); }
private bool FilterCis_Obec(Cis_Obec entity) { return (entity.Id == this.id_obec); }
private bool FilterCis_Obec(Cis_Obec entity) { return (entity.Id == this.MiestoNarodenia); }