Inheritance: System.Data.Objects.DataClasses.EntityObject
コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Structures EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStructures(Structure structure)
 {
     base.AddObject("Structures", structure);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Structure object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="item">Initial value of the Item property.</param>
 /// <param name="product">Initial value of the Product property.</param>
 /// <param name="itemsNumber">Initial value of the ItemsNumber property.</param>
 public static Structure CreateStructure(global::System.Int32 id, global::System.Int32 item, global::System.Int32 product, global::System.Int32 itemsNumber)
 {
     Structure structure = new Structure();
     structure.ID = id;
     structure.Item = item;
     structure.Product = product;
     structure.ItemsNumber = itemsNumber;
     return structure;
 }