예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Preferences EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPreferences(Preference preference)
 {
     base.AddObject("Preferences", preference);
 }
예제 #2
0
 /// <summary>
 /// Create a new Preference object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="eventId">Initial value of the EventId property.</param>
 /// <param name="question">Initial value of the Question property.</param>
 public static Preference CreatePreference(global::System.Int32 id, global::System.Int32 eventId, global::System.String question)
 {
     Preference preference = new Preference();
     preference.Id = id;
     preference.EventId = eventId;
     preference.Question = question;
     return preference;
 }