/// <summary> /// Create a new Car object. /// </summary> /// <param name="carId">Initial value of the CarId property.</param> /// <param name="carMake">Initial value of the CarMake property.</param> /// <param name="carModel">Initial value of the CarModel property.</param> /// <param name="carYear">Initial value of the CarYear property.</param> /// <param name="carColor">Initial value of the CarColor property.</param> /// <param name="totalSeats">Initial value of the TotalSeats property.</param> /// <param name="seatsLeft">Initial value of the SeatsLeft property.</param> public static Car CreateCar(global::System.Int32 carId, global::System.String carMake, global::System.String carModel, global::System.Int32 carYear, global::System.String carColor, global::System.Int32 totalSeats, global::System.Int32 seatsLeft) { Car car = new Car(); car.CarId = carId; car.CarMake = carMake; car.CarModel = carModel; car.CarYear = carYear; car.CarColor = carColor; car.TotalSeats = totalSeats; car.SeatsLeft = seatsLeft; return car; }
/// <summary> /// Deprecated Method for adding a new object to the Cars EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCars(Car car) { base.AddObject("Cars", car); }