コード例 #1
0
ファイル: Cis_Okres.cs プロジェクト: aytacozkan/nisproject
     private void FixupCis_Kraj(Cis_Kraj previousValue)
     {
         if (previousValue != null && previousValue.Cis_Okres.Contains(this))
         {
             previousValue.Cis_Okres.Remove(this);
         }
 
         if (Cis_Kraj != null)
         {
             if (!Cis_Kraj.Cis_Okres.Contains(this))
             {
                 Cis_Kraj.Cis_Okres.Add(this);
             }
             if (KrajID != Cis_Kraj.Id)
             {
                 KrajID = Cis_Kraj.Id;
             }
         }
         else if (!_settingFK)
         {
             KrajID = null;
         }
     }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Cis_Kraj EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCis_Kraj(Cis_Kraj cis_Kraj)
 {
     base.AddObject("Cis_Kraj", cis_Kraj);
 }
コード例 #3
0
 private bool FilterCis_Kraj(Cis_Kraj entity)
 {
     return (entity.Id == this.KrajID);
 }
コード例 #4
0
 /// <summary>
 /// Create a new Cis_Kraj object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static Cis_Kraj CreateCis_Kraj(global::System.Int32 id)
 {
     Cis_Kraj cis_Kraj = new Cis_Kraj();
     cis_Kraj.Id = id;
     return cis_Kraj;
 }