private OutletPriorityDTO Map(tblOutletPriority tbl) { var dto = new OutletPriorityDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, EffectiveDate = tbl.EffectiveDate, Priority = tbl.OutletPriority, OutletMasterId = tbl.OutletId, RouteMasterId = tbl.RouteId }; return dto; }
/// <summary> /// Deprecated Method for adding a new object to the tblOutletPriority EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblOutletPriority(tblOutletPriority tblOutletPriority) { base.AddObject("tblOutletPriority", tblOutletPriority); }
/// <summary> /// Create a new tblOutletPriority object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="outletId">Initial value of the OutletId property.</param> /// <param name="routeId">Initial value of the RouteId property.</param> /// <param name="outletPriority">Initial value of the OutletPriority 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> public static tblOutletPriority CreatetblOutletPriority(global::System.Guid id, global::System.Guid outletId, global::System.Guid routeId, global::System.Int32 outletPriority, global::System.DateTime effectiveDate, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblOutletPriority tblOutletPriority = new tblOutletPriority(); tblOutletPriority.Id = id; tblOutletPriority.OutletId = outletId; tblOutletPriority.RouteId = routeId; tblOutletPriority.OutletPriority = outletPriority; tblOutletPriority.EffectiveDate = effectiveDate; tblOutletPriority.IM_DateCreated = iM_DateCreated; tblOutletPriority.IM_DateLastUpdated = iM_DateLastUpdated; tblOutletPriority.IM_Status = iM_Status; return tblOutletPriority; }