コード例 #1
0
 /// <summary>
 /// Create a new Option object.
 /// </summary>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Option CreateOption(global::System.String title, global::System.Boolean isActive)
 {
     Option option = new Option();
     option.Title = title;
     option.IsActive = isActive;
     return option;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Options EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOptions(Option option)
 {
     base.AddObject("Options", option);
 }