private ShiftDTO Map(tblShift tblShift)
 {
     if (tblShift == null) return null;
     return new ShiftDTO()
                {
                    MasterId = tblShift.id,
                    Name = tblShift.Name,
                    Code = tblShift.Code,
                    StatusId = tblShift.IM_Status,
                    DateLastUpdated = tblShift.IM_DateLastUpdated,
                    DateCreated = tblShift.IM_DateCreated,
                    Description = tblShift.Description,
                    EndTime = tblShift.EndTime,
                    StartTime = tblShift.StartTime
                };
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new tblShift object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="endTime">Initial value of the EndTime 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 tblShift CreatetblShift(global::System.Guid id, global::System.String name, global::System.DateTime startTime, global::System.DateTime endTime, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblShift tblShift = new tblShift();
     tblShift.id = id;
     tblShift.Name = name;
     tblShift.StartTime = startTime;
     tblShift.EndTime = endTime;
     tblShift.IM_DateCreated = iM_DateCreated;
     tblShift.IM_DateLastUpdated = iM_DateLastUpdated;
     tblShift.IM_Status = iM_Status;
     return tblShift;
 }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblShift EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblShift(tblShift tblShift)
 {
     base.AddObject("tblShift", tblShift);
 }