private TargetItemDTO Map(tblTargetItem tbl)
 {
     var dto = new TargetItemDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       ProductMasterId = tbl.ProductId,
                       TargetMasterId = tbl.TargetId,
                       Quantity = tbl.Quantity
                   };
     return dto;
 }
Example #2
0
 /// <summary>
 /// Create a new tblTargetItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="targetId">Initial value of the TargetId property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="quantity">Initial value of the Quantity 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 tblTargetItem CreatetblTargetItem(global::System.Guid id, global::System.Guid targetId, global::System.Guid productId, global::System.Decimal quantity, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblTargetItem tblTargetItem = new tblTargetItem();
     tblTargetItem.Id = id;
     tblTargetItem.TargetId = targetId;
     tblTargetItem.ProductId = productId;
     tblTargetItem.Quantity = quantity;
     tblTargetItem.IM_DateCreated = iM_DateCreated;
     tblTargetItem.IM_DateLastUpdated = iM_DateLastUpdated;
     tblTargetItem.IM_Status = iM_Status;
     return tblTargetItem;
 }
Example #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblTargetItem EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblTargetItem(tblTargetItem tblTargetItem)
 {
     base.AddObject("tblTargetItem", tblTargetItem);
 }