Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TimePreferences EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTimePreferences(TimePreference timePreference)
 {
     base.AddObject("TimePreferences", timePreference);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new TimePreference object.
 /// </summary>
 /// <param name="timePrefID">Initial value of the TimePrefID property.</param>
 /// <param name="dayPrefID">Initial value of the DayPrefID property.</param>
 /// <param name="timeFrom">Initial value of the TimeFrom property.</param>
 /// <param name="timeTo">Initial value of the TimeTo property.</param>
 public static TimePreference CreateTimePreference(global::System.Int32 timePrefID, global::System.Int32 dayPrefID, global::System.TimeSpan timeFrom, global::System.TimeSpan timeTo)
 {
     TimePreference timePreference = new TimePreference();
     timePreference.TimePrefID = timePrefID;
     timePreference.DayPrefID = dayPrefID;
     timePreference.TimeFrom = timeFrom;
     timePreference.TimeTo = timeTo;
     return timePreference;
 }