private SalesmanRouteDTO Map(tblSalemanRoute tbl) { var dto = new SalesmanRouteDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, DistributorSalesmanMasterId = tbl.SalemanId, RouteMasterId = tbl.RouteId }; return dto; }
/// <summary> /// Create a new tblSalemanRoute object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="routeId">Initial value of the RouteId property.</param> /// <param name="salemanId">Initial value of the SalemanId 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 tblSalemanRoute CreatetblSalemanRoute(global::System.Guid id, global::System.Guid routeId, global::System.Guid salemanId, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblSalemanRoute tblSalemanRoute = new tblSalemanRoute(); tblSalemanRoute.Id = id; tblSalemanRoute.RouteId = routeId; tblSalemanRoute.SalemanId = salemanId; tblSalemanRoute.IM_DateCreated = iM_DateCreated; tblSalemanRoute.IM_DateLastUpdated = iM_DateLastUpdated; tblSalemanRoute.IM_Status = iM_Status; return tblSalemanRoute; }
/// <summary> /// Deprecated Method for adding a new object to the tblSalemanRoute EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblSalemanRoute(tblSalemanRoute tblSalemanRoute) { base.AddObject("tblSalemanRoute", tblSalemanRoute); }