/// <summary> /// Create a new Driver object. /// </summary> /// <param name="driverId">Initial value of the DriverId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="carId">Initial value of the CarId property.</param> /// <param name="eventId">Initial value of the EventId property.</param> public static Driver CreateDriver(global::System.Int32 driverId, global::System.Int32 userId, global::System.Int32 carId, global::System.Int32 eventId) { Driver driver = new Driver(); driver.DriverId = driverId; driver.UserId = userId; driver.CarId = carId; driver.EventId = eventId; return driver; }
/// <summary> /// Deprecated Method for adding a new object to the Drivers EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDrivers(Driver driver) { base.AddObject("Drivers", driver); }