private ChannelPackagingDTO Map(tblChannelPackaging tbl) { var dto = new ChannelPackagingDTO { MasterId = tbl.id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, IsChecked = tbl.IsChecked, OutletTypeMasterId = tbl.OutletTypeId, ProductPackagingMasterId = tbl.PackagingId, }; return dto; }
/// <summary> /// Create a new tblChannelPackaging object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="packagingId">Initial value of the PackagingId property.</param> /// <param name="outletTypeId">Initial value of the OutletTypeId property.</param> /// <param name="isChecked">Initial value of the IsChecked 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 tblChannelPackaging CreatetblChannelPackaging(global::System.Guid id, global::System.Guid packagingId, global::System.Guid outletTypeId, global::System.Boolean isChecked, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblChannelPackaging tblChannelPackaging = new tblChannelPackaging(); tblChannelPackaging.id = id; tblChannelPackaging.PackagingId = packagingId; tblChannelPackaging.OutletTypeId = outletTypeId; tblChannelPackaging.IsChecked = isChecked; tblChannelPackaging.IM_DateCreated = iM_DateCreated; tblChannelPackaging.IM_DateLastUpdated = iM_DateLastUpdated; tblChannelPackaging.IM_Status = iM_Status; return tblChannelPackaging; }
/// <summary> /// Deprecated Method for adding a new object to the tblChannelPackaging EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblChannelPackaging(tblChannelPackaging tblChannelPackaging) { base.AddObject("tblChannelPackaging", tblChannelPackaging); }