コード例 #1
0
 /// <summary>
 /// Create a new Primitive object.
 /// </summary>
 /// <param name="decimal">Initial value of the Decimal property.</param>
 /// <param name="id">Initial value of the Id property.</param>
 public static Primitive CreatePrimitive(global::System.Decimal @decimal, global::System.Int32 id)
 {
     Primitive primitive = new Primitive();
     primitive.Decimal = @decimal;
     primitive.Id = id;
     return primitive;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Primitives EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPrimitives(Primitive primitive)
 {
     base.AddObject("Primitives", primitive);
 }