private SalesmanSupplierDTO Map(tblSalesmanSupplier tbl)
 {
     var dto = new SalesmanSupplierDTO
     {
         MasterId = tbl.id,
         DateCreated = tbl.IM_DateCreated,
         DateLastUpdated = tbl.IM_DateLastUpdated,
         StatusId = tbl.IM_Status,
         DistributorSalesmanMasterId = tbl.CostCentreId,
         SupplierMasterId = tbl.SupplierId
     };
     return dto;
 }
Example #2
0
 /// <summary>
 /// Create a new tblSalesmanSupplier object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="supplierId">Initial value of the SupplierId property.</param>
 /// <param name="costCentreId">Initial value of the CostCentreId 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 tblSalesmanSupplier CreatetblSalesmanSupplier(global::System.Guid id, global::System.Guid supplierId, global::System.Guid costCentreId, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblSalesmanSupplier tblSalesmanSupplier = new tblSalesmanSupplier();
     tblSalesmanSupplier.id = id;
     tblSalesmanSupplier.SupplierId = supplierId;
     tblSalesmanSupplier.CostCentreId = costCentreId;
     tblSalesmanSupplier.IM_DateCreated = iM_DateCreated;
     tblSalesmanSupplier.IM_DateLastUpdated = iM_DateLastUpdated;
     tblSalesmanSupplier.IM_Status = iM_Status;
     return tblSalesmanSupplier;
 }
Example #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblSalesmanSupplier EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblSalesmanSupplier(tblSalesmanSupplier tblSalesmanSupplier)
 {
     base.AddObject("tblSalesmanSupplier", tblSalesmanSupplier);
 }