/// <summary> /// Deprecated Method for adding a new object to the Substances EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSubstances(Substance substance) { base.AddObject("Substances", substance); }
/// <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; }