Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Merchants EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMerchants(Merchant merchant)
 {
     base.AddObject("Merchants", merchant);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Merchant object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="registerDate">Initial value of the RegisterDate property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="modifyDate">Initial value of the ModifyDate property.</param>
 /// <param name="ownerId">Initial value of the OwnerId property.</param>
 public static Merchant CreateMerchant(global::System.Int32 id, global::System.String name, global::System.String description, global::System.String registerDate, global::System.String createDate, global::System.String modifyDate, global::System.Int32 ownerId)
 {
     Merchant merchant = new Merchant();
     merchant.Id = id;
     merchant.Name = name;
     merchant.Description = description;
     merchant.RegisterDate = registerDate;
     merchant.CreateDate = createDate;
     merchant.ModifyDate = modifyDate;
     merchant.OwnerId = ownerId;
     return merchant;
 }