/// <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="vehicleID">Initial value of the VehicleID property.</param> /// <param name="registrationNumber">Initial value of the RegistrationNumber property.</param> /// <param name="ownerid">Initial value of the Ownerid property.</param> public static Vehicle CreateVehicle(global::System.Int32 vehicleID, global::System.String registrationNumber, global::System.Int64 ownerid) { Vehicle vehicle = new Vehicle(); vehicle.VehicleID = vehicleID; vehicle.RegistrationNumber = registrationNumber; vehicle.Ownerid = ownerid; return vehicle; }