private RetireSettingDTO Map(tblRetireDocumentSetting tbl)
 {
     var dto = new RetireSettingDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       RetireTypeId = tbl.RetireTypeId,
                       Duration = tbl.Duration
                   };
     return dto;
 }
Example #2
0
 /// <summary>
 /// Create a new tblRetireDocumentSetting object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="retireTypeId">Initial value of the RetireTypeId property.</param>
 /// <param name="duration">Initial value of the Duration 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 tblRetireDocumentSetting CreatetblRetireDocumentSetting(global::System.Guid id, global::System.Int32 retireTypeId, global::System.Int32 duration, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblRetireDocumentSetting tblRetireDocumentSetting = new tblRetireDocumentSetting();
     tblRetireDocumentSetting.Id = id;
     tblRetireDocumentSetting.RetireTypeId = retireTypeId;
     tblRetireDocumentSetting.Duration = duration;
     tblRetireDocumentSetting.IM_DateCreated = iM_DateCreated;
     tblRetireDocumentSetting.IM_DateLastUpdated = iM_DateLastUpdated;
     tblRetireDocumentSetting.IM_Status = iM_Status;
     return tblRetireDocumentSetting;
 }
Example #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblRetireDocumentSetting EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblRetireDocumentSetting(tblRetireDocumentSetting tblRetireDocumentSetting)
 {
     base.AddObject("tblRetireDocumentSetting", tblRetireDocumentSetting);
 }