private FreeOfChargeDiscountDTO Map(tblFreeOfChargeDiscount tbl) { var dto = new FreeOfChargeDiscountDTO { MasterId = tbl.id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, ProductRefMasterId = tbl.ProductRef, isChecked = tbl.IsChecked, StartDate = tbl.StartDate, EndDate = tbl.EndDate }; return dto; }
/// <summary> /// Deprecated Method for adding a new object to the tblFreeOfChargeDiscount EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblFreeOfChargeDiscount(tblFreeOfChargeDiscount tblFreeOfChargeDiscount) { base.AddObject("tblFreeOfChargeDiscount", tblFreeOfChargeDiscount); }
/// <summary> /// Create a new tblFreeOfChargeDiscount object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="productRef">Initial value of the ProductRef property.</param> /// <param name="isChecked">Initial value of the IsChecked 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 tblFreeOfChargeDiscount CreatetblFreeOfChargeDiscount(global::System.Guid id, global::System.Guid productRef, global::System.Boolean isChecked, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblFreeOfChargeDiscount tblFreeOfChargeDiscount = new tblFreeOfChargeDiscount(); tblFreeOfChargeDiscount.id = id; tblFreeOfChargeDiscount.ProductRef = productRef; tblFreeOfChargeDiscount.IsChecked = isChecked; tblFreeOfChargeDiscount.IM_DateCreated = iM_DateCreated; tblFreeOfChargeDiscount.IM_DateLastUpdated = iM_DateLastUpdated; tblFreeOfChargeDiscount.IM_Status = iM_Status; return tblFreeOfChargeDiscount; }