コード例 #1
0
 private TargetPeriodDTO Map(tblTargetPeriod tbl)
 {
     var dto = new TargetPeriodDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Name = tbl.Name,
                       EndDate = tbl.EndDate,
                       StartDate = tbl.StartDate
                   };
     return dto;
 }
コード例 #2
0
 /// <summary>
 /// Create a new tblTargetPeriod object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="endDate">Initial value of the EndDate 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 tblTargetPeriod CreatetblTargetPeriod(global::System.Guid id, global::System.DateTime startDate, global::System.DateTime endDate, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblTargetPeriod tblTargetPeriod = new tblTargetPeriod();
     tblTargetPeriod.Id = id;
     tblTargetPeriod.StartDate = startDate;
     tblTargetPeriod.EndDate = endDate;
     tblTargetPeriod.IM_DateCreated = iM_DateCreated;
     tblTargetPeriod.IM_DateLastUpdated = iM_DateLastUpdated;
     tblTargetPeriod.IM_Status = iM_Status;
     return tblTargetPeriod;
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblTargetPeriod EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblTargetPeriod(tblTargetPeriod tblTargetPeriod)
 {
     base.AddObject("tblTargetPeriod", tblTargetPeriod);
 }