private CommodityProducerDTO Map(tblCommodityProducer tbl) { var dto = new CommodityProducerDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Code = tbl.Code, Acrage = tbl.Acrage, Name = tbl.Name, RegNo = tbl.RegNo, PhysicalAddress = tbl.PhysicalAddress, Description = tbl.Description, CommoditySupplierId = tbl.CostCentreId }; return dto; }
/// <summary> /// Deprecated Method for adding a new object to the tblCommodityProducer EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblCommodityProducer(tblCommodityProducer tblCommodityProducer) { base.AddObject("tblCommodityProducer", tblCommodityProducer); }
/// <summary> /// Create a new tblCommodityProducer object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="acrage">Initial value of the Acrage property.</param> /// <param name="regNo">Initial value of the RegNo 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 tblCommodityProducer CreatetblCommodityProducer(global::System.Guid id, global::System.String name, global::System.String acrage, global::System.String regNo, global::System.Guid costCentreId, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblCommodityProducer tblCommodityProducer = new tblCommodityProducer(); tblCommodityProducer.Id = id; tblCommodityProducer.Name = name; tblCommodityProducer.Acrage = acrage; tblCommodityProducer.RegNo = regNo; tblCommodityProducer.CostCentreId = costCentreId; tblCommodityProducer.IM_DateCreated = iM_DateCreated; tblCommodityProducer.IM_DateLastUpdated = iM_DateLastUpdated; tblCommodityProducer.IM_Status = iM_Status; return tblCommodityProducer; }