Esempio n. 1
0
 /// <summary>
 /// Create a new Engine object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="horsepower">Initial value of the Horsepower property.</param>
 /// <param name="cylinders">Initial value of the Cylinders property.</param>
 public static Engine CreateEngine(global::System.Int32 id, global::System.Int32 horsepower, global::System.Int32 cylinders)
 {
     Engine engine = new Engine();
     engine.Id = id;
     engine.Horsepower = horsepower;
     engine.Cylinders = cylinders;
     return engine;
 }
Esempio n. 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Engines EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEngines(Engine engine)
 {
     base.AddObject("Engines", engine);
 }