コード例 #1
0
 /// <summary>
 /// Create a new Temp object.
 /// </summary>
 /// <param name="cartonBoxNumber">Initial value of the CartonBoxNumber property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="color">Initial value of the Color property.</param>
 /// <param name="size">Initial value of the Size property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Temp CreateTemp(global::System.String cartonBoxNumber, global::System.Decimal quantity, global::System.String color, global::System.String size, global::System.String name)
 {
     Temp temp = new Temp();
     temp.CartonBoxNumber = cartonBoxNumber;
     temp.Quantity = quantity;
     temp.Color = color;
     temp.Size = size;
     temp.Name = name;
     return temp;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Temps EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTemps(Temp temp)
 {
     base.AddObject("Temps", temp);
 }