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