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