コード例 #1
0
        //Insert new require for a method
        public REQUIRE InsertREQUIRES(int idmethod, string noidung)
		{
			var newItem = new REQUIRE
			{
                IDMethod = idmethod,
				NoiDung = noidung
			};
            return _repREQUIRES.Insert(newItem) ? newItem : null;
		}
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the REQUIRES EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToREQUIRES(REQUIRE rEQUIRE)
 {
     base.AddObject("REQUIRES", rEQUIRE);
 }
コード例 #3
0
 /// <summary>
 /// Create a new REQUIRE object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="iDMethod">Initial value of the IDMethod property.</param>
 public static REQUIRE CreateREQUIRE(global::System.Int32 id, global::System.Int32 iDMethod)
 {
     REQUIRE rEQUIRE = new REQUIRE();
     rEQUIRE.ID = id;
     rEQUIRE.IDMethod = iDMethod;
     return rEQUIRE;
 }