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