/// <summary> /// Deprecated Method for adding a new object to the UserSettings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserSettings(UserSettings userSettings) { base.AddObject("UserSettings", userSettings); }
/// <summary> /// Create a new UserSettings object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="namingConvention">Initial value of the NamingConvention property.</param> /// <param name="holidayColor">Initial value of the HolidayColor property.</param> /// <param name="schedulerView">Initial value of the SchedulerView property.</param> /// <param name="timeSlotDuration">Initial value of the TimeSlotDuration property.</param> /// <param name="workHourColor">Initial value of the WorkHourColor property.</param> /// <param name="dayColor">Initial value of the DayColor property.</param> public static UserSettings CreateUserSettings(global::System.Int32 id, global::System.Byte namingConvention, global::System.Int32 holidayColor, global::System.Int32 schedulerView, global::System.Int32 timeSlotDuration, global::System.Int32 workHourColor, global::System.Int32 dayColor) { UserSettings userSettings = new UserSettings(); userSettings.Id = id; userSettings.NamingConvention = namingConvention; userSettings.HolidayColor = holidayColor; userSettings.SchedulerView = schedulerView; userSettings.TimeSlotDuration = timeSlotDuration; userSettings.WorkHourColor = workHourColor; userSettings.DayColor = dayColor; return userSettings; }