Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Preference object.
 /// </summary>
 /// <param name="preferenceID">Initial value of the PreferenceID property.</param>
 /// <param name="preferenceName">Initial value of the PreferenceName property.</param>
 /// <param name="value">Initial value of the Value property.</param>
 public static Preference CreatePreference(global::System.Int32 preferenceID, global::System.String preferenceName, global::System.String value)
 {
     Preference preference = new Preference();
     preference.PreferenceID = preferenceID;
     preference.PreferenceName = preferenceName;
     preference.Value = value;
     return preference;
 }