private CommodityProducerCentreAllocationDTO Map(tblMasterDataAllocation tbl) { var dto = new CommodityProducerCentreAllocationDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, CommodityProducerId = tbl.EntityAId, CentreId = tbl.EntityBId }; return dto; }
private RouteCostCentreAllocationDTO Map(tblMasterDataAllocation tbl) { var dto = new RouteCostCentreAllocationDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, RouteId = tbl.EntityAId, CostCentreId = tbl.EntityBId }; return dto; }
/// <summary> /// Deprecated Method for adding a new object to the tblMasterDataAllocation EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblMasterDataAllocation(tblMasterDataAllocation tblMasterDataAllocation) { base.AddObject("tblMasterDataAllocation", tblMasterDataAllocation); }
/// <summary> /// Create a new tblMasterDataAllocation object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="entityAId">Initial value of the EntityAId property.</param> /// <param name="entityBId">Initial value of the EntityBId property.</param> /// <param name="allocationType">Initial value of the AllocationType 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 tblMasterDataAllocation CreatetblMasterDataAllocation(global::System.Guid id, global::System.Guid entityAId, global::System.Guid entityBId, global::System.Int32 allocationType, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblMasterDataAllocation tblMasterDataAllocation = new tblMasterDataAllocation(); tblMasterDataAllocation.Id = id; tblMasterDataAllocation.EntityAId = entityAId; tblMasterDataAllocation.EntityBId = entityBId; tblMasterDataAllocation.AllocationType = allocationType; tblMasterDataAllocation.IM_DateCreated = iM_DateCreated; tblMasterDataAllocation.IM_DateLastUpdated = iM_DateLastUpdated; tblMasterDataAllocation.IM_Status = iM_Status; return tblMasterDataAllocation; }