Exemplo n.º 1
0
 /// <summary>
 /// Create a new Shoe object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="shoeType">Initial value of the ShoeType property.</param>
 /// <param name="shoeDescriptionId">Initial value of the ShoeDescriptionId property.</param>
 public static Shoe CreateShoe(global::System.Int32 id, ShoeType shoeType, global::System.Int32 shoeDescriptionId)
 {
     Shoe shoe = new Shoe();
     shoe.Id = id;
     shoe.ShoeType = StructuralObject.VerifyComplexObjectIsNotNull(shoeType, "ShoeType");
     shoe.ShoeDescriptionId = shoeDescriptionId;
     return shoe;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Shoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShoes(Shoe shoe)
 {
     base.AddObject("Shoes", shoe);
 }