//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; }
/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the INVARIANTS EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToINVARIANTS(INVARIANT iNVARIANT) { base.AddObject("INVARIANTS", iNVARIANT); }