コード例 #1
0
        //Insert new invariant for a method
        public INVARIANT InsertINVARIANTS(int idclass, string noidung)
		{
			var newItem = new INVARIANT
			{
                IDClass = idclass,
				NoiDung = noidung
			};
            return _repINVARIANTS.Insert(newItem) ? newItem : null;
		}
コード例 #2
0
 /// <summary>
 /// Create a new INVARIANT object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="iDClass">Initial value of the IDClass property.</param>
 public static INVARIANT CreateINVARIANT(global::System.Int32 id, global::System.Int32 iDClass)
 {
     INVARIANT iNVARIANT = new INVARIANT();
     iNVARIANT.ID = id;
     iNVARIANT.IDClass = iDClass;
     return iNVARIANT;
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the INVARIANTS EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToINVARIANTS(INVARIANT iNVARIANT)
 {
     base.AddObject("INVARIANTS", iNVARIANT);
 }