Exemple #1
0
 /// <summary>
 /// Create a new Widget object.
 /// </summary>
 /// <param name="widgetID">Initial value of the WidgetID property.</param>
 public static Widget CreateWidget(global::System.Int64 widgetID)
 {
     Widget widget = new Widget();
     widget.WidgetID = widgetID;
     return widget;
 }
Exemple #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Widgets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWidgets(Widget widget)
 {
     base.AddObject("Widgets", widget);
 }