/// <summary>
 /// Deprecated Method for adding a new object to the Yarns EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToYarns(Yarn yarn)
 {
     base.AddObject("Yarns", yarn);
 }
コード例 #2
0
 //Insert
 public void Add(Yarn d)
 {
     entities.Yarns.AddObject(d);
 }
 /// <summary>
 /// Create a new Yarn object.
 /// </summary>
 /// <param name="demandNo">Initial value of the DemandNo property.</param>
 /// <param name="m_C_Dia">Initial value of the M_C_Dia property.</param>
 /// <param name="f_Gsum">Initial value of the F_Gsum property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="test">Initial value of the Test property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 public static Yarn CreateYarn(global::System.Int32 demandNo, global::System.Int32 m_C_Dia, global::System.Int32 f_Gsum, global::System.Double quantity, global::System.String type, global::System.String test, global::System.DateTime date)
 {
     Yarn yarn = new Yarn();
     yarn.DemandNo = demandNo;
     yarn.M_C_Dia = m_C_Dia;
     yarn.F_Gsum = f_Gsum;
     yarn.Quantity = quantity;
     yarn.Type = type;
     yarn.Test = test;
     yarn.Date = date;
     return yarn;
 }