private AppSettingsDTO Map(tblSettings tbl) { var dto = new AppSettingsDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Key = tbl.Key, Value = tbl.Value }; return dto; }
/// <summary> /// Create a new tblSettings object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="key">Initial value of the Key property.</param> /// <param name="value">Initial value of the Value 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 tblSettings CreatetblSettings(global::System.Guid id, global::System.Int32 key, global::System.String value, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status) { tblSettings tblSettings = new tblSettings(); tblSettings.Id = id; tblSettings.Key = key; tblSettings.Value = value; tblSettings.IM_DateCreated = iM_DateCreated; tblSettings.IM_DateLastUpdated = iM_DateLastUpdated; tblSettings.IM_Status = iM_Status; return tblSettings; }
/// <summary> /// Deprecated Method for adding a new object to the tblSettings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotblSettings(tblSettings tblSettings) { base.AddObject("tblSettings", tblSettings); }