コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Settings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSettings(Setting setting)
 {
     base.AddObject("Settings", setting);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Setting object.
 /// </summary>
 /// <param name="settingID">Initial value of the SettingID property.</param>
 /// <param name="settingType">Initial value of the SettingType property.</param>
 public static Setting CreateSetting(global::System.Guid settingID, global::System.String settingType)
 {
     Setting setting = new Setting();
     setting.SettingID = settingID;
     setting.SettingType = settingType;
     return setting;
 }