Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblPricingItem EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblPricingItem(tblPricingItem tblPricingItem)
 {
     base.AddObject("tblPricingItem", tblPricingItem);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new tblPricingItem object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="pricingId">Initial value of the PricingId property.</param>
 /// <param name="exfactory">Initial value of the Exfactory property.</param>
 /// <param name="sellingPrice">Initial value of the SellingPrice property.</param>
 /// <param name="effecitiveDate">Initial value of the EffecitiveDate 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>
 public static tblPricingItem CreatetblPricingItem(global::System.Guid id, global::System.Guid pricingId, global::System.Decimal exfactory, global::System.Decimal sellingPrice, global::System.DateTime effecitiveDate, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblPricingItem tblPricingItem = new tblPricingItem();
     tblPricingItem.id = id;
     tblPricingItem.PricingId = pricingId;
     tblPricingItem.Exfactory = exfactory;
     tblPricingItem.SellingPrice = sellingPrice;
     tblPricingItem.EffecitiveDate = effecitiveDate;
     tblPricingItem.IM_DateCreated = iM_DateCreated;
     tblPricingItem.IM_DateLastUpdated = iM_DateLastUpdated;
     tblPricingItem.IM_Status = iM_Status;
     return tblPricingItem;
 }
Ejemplo n.º 3
0
 tblPricingItem MapItem(tblPricingItem n)
 {
     return new tblPricingItem()
                {
                    IM_DateLastUpdated = DateTime.Now,
                    IM_Status = (int) EntityStatus.Active,
                    IM_DateCreated = n.IM_DateCreated,
                    id = n.id,
                    EffecitiveDate = n.EffecitiveDate,
                    Exfactory = n.Exfactory,
                    PricingId = n.PricingId,
                    SellingPrice = n.SellingPrice
                };
 }