private VehicleDTO Map(tblEquipment tbl) { var dto = new VehicleDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Name = tbl.Name, Code = tbl.Code, Description = tbl.Description, EquipmentNumber = tbl.EquipmentNumber, EquipmentTypeId = tbl.EquipmentType, HubId = tbl.CostCentreId, Make = tbl.Make, Model = tbl.Model }; return dto; }
private SourcingContainerDTO Map(tblEquipment tbl) { var dto = new SourcingContainerDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Name = tbl.Name, Code = tbl.Code, Description = tbl.Description, EquipmentNumber = tbl.EquipmentNumber, EquipmentTypeId = tbl.EquipmentType, HubId = tbl.CostCentreId, Make = tbl.Make, Model = tbl.Model, ContainerTypeId = tbl.ContainerTypeId ?? Guid.Empty }; return dto; }
/// <summary> /// Deprecated Method for adding a new object to the tblEquipment EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblEquipment(tblEquipment tblEquipment) { base.AddObject("tblEquipment", tblEquipment); }
/// <summary> /// Create a new tblEquipment object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="equipmentType">Initial value of the EquipmentType 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 tblEquipment CreatetblEquipment(global::System.Guid id, global::System.String name, global::System.Int32 equipmentType, global::System.Guid costCentreId, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblEquipment tblEquipment = new tblEquipment(); tblEquipment.Id = id; tblEquipment.Name = name; tblEquipment.EquipmentType = equipmentType; tblEquipment.CostCentreId = costCentreId; tblEquipment.IM_DateCreated = iM_DateCreated; tblEquipment.IM_DateLastUpdated = iM_DateLastUpdated; tblEquipment.IM_Status = iM_Status; return tblEquipment; }