private ContainerTypeDTO Map(tblContainerType tbl) { var dto = new ContainerTypeDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Name = tbl.Name, Make = tbl.Make, Code = tbl.Code, Description = tbl.Description, Model = tbl.Model, LoadCariage = tbl.LoadCariage ?? 0, TareWeight = tbl.TareWeight ?? 0, Lenght = tbl.Lenght ?? 0, Width = tbl.Width ?? 0, Height = tbl.Height ?? 0, BubbleSpace = tbl.BubbleSpace ?? 0, Volume = tbl.Volume ?? 0, FreezerTemp = tbl.FreezerTemp ?? 0, CommodityGradeId = tbl.CommodityGradeId ?? Guid.Empty, ContainerUseTypeId = tbl.ContainerUseId ?? 0 }; return dto; }
/// <summary> /// Deprecated Method for adding a new object to the tblContainerType EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblContainerType(tblContainerType tblContainerType) { base.AddObject("tblContainerType", tblContainerType); }
/// <summary> /// Create a new tblContainerType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="make">Initial value of the Make property.</param> /// <param name="model">Initial value of the Model 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 tblContainerType CreatetblContainerType(global::System.Guid id, global::System.String name, global::System.String make, global::System.String model, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblContainerType tblContainerType = new tblContainerType(); tblContainerType.Id = id; tblContainerType.Name = name; tblContainerType.Make = make; tblContainerType.Model = model; tblContainerType.IM_DateCreated = iM_DateCreated; tblContainerType.IM_DateLastUpdated = iM_DateLastUpdated; tblContainerType.IM_Status = iM_Status; return tblContainerType; }