コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 public void UpdateCis_Obec(Cis_Obec currentCis_Obec)
 {
     this.ObjectContext.Cis_Obec.AttachAsModified(currentCis_Obec, this.ChangeSet.GetOriginal(currentCis_Obec));
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Cis_Obec EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCis_Obec(Cis_Obec cis_Obec)
 {
     base.AddObject("Cis_Obec", cis_Obec);
 }
コード例 #6
0
 private bool FilterCis_Obec(Cis_Obec entity)
 {
     return (entity.Id == this.id_obec);
 }
コード例 #7
0
 private bool FilterCis_Obec(Cis_Obec entity)
 {
     return (entity.Id == this.MiestoNarodenia);
 }