/// <summary> /// Deprecated Method for adding a new object to the Vehicles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVehicles(Vehicle vehicle) { base.AddObject("Vehicles", vehicle); }
/// <summary> /// Create a new Vehicle object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="vin">Initial value of the Vin property.</param> /// <param name="make">Initial value of the Make property.</param> /// <param name="model">Initial value of the Model property.</param> /// <param name="year">Initial value of the Year property.</param> public static Vehicle CreateVehicle(global::System.Int32 id, global::System.String vin, global::System.String make, global::System.String model, global::System.Int32 year) { Vehicle vehicle = new Vehicle(); vehicle.Id = id; vehicle.Vin = vin; vehicle.Make = make; vehicle.Model = model; vehicle.Year = year; return vehicle; }