예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblDiscountItem EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblDiscountItem(tblDiscountItem tblDiscountItem)
 {
     base.AddObject("tblDiscountItem", tblDiscountItem);
 }
예제 #2
0
 /// <summary>
 /// Create a new tblDiscountItem object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="discountId">Initial value of the DiscountId property.</param>
 /// <param name="discountRate">Initial value of the DiscountRate property.</param>
 /// <param name="effectiveDate">Initial value of the EffectiveDate property.</param>
 /// <param name="iM_DateCreated">Initial value of the IM_DateCreated property.</param>
 /// <param name="iM_DateLastUpdated">Initial value of the IM_DateLastUpdated property.</param>
 /// <param name="iM_Status">Initial value of the IM_Status property.</param>
 /// <param name="isByQuantity">Initial value of the IsByQuantity property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 public static tblDiscountItem CreatetblDiscountItem(global::System.Guid id, global::System.Guid discountId, global::System.Decimal discountRate, global::System.DateTime effectiveDate, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status, global::System.Boolean isByQuantity, global::System.Decimal quantity)
 {
     tblDiscountItem tblDiscountItem = new tblDiscountItem();
     tblDiscountItem.id = id;
     tblDiscountItem.DiscountId = discountId;
     tblDiscountItem.DiscountRate = discountRate;
     tblDiscountItem.EffectiveDate = effectiveDate;
     tblDiscountItem.IM_DateCreated = iM_DateCreated;
     tblDiscountItem.IM_DateLastUpdated = iM_DateLastUpdated;
     tblDiscountItem.IM_Status = iM_Status;
     tblDiscountItem.IsByQuantity = isByQuantity;
     tblDiscountItem.Quantity = quantity;
     return tblDiscountItem;
 }