/// <summary> /// Create a new FuelTrack object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="fuelingDate">Initial value of the FuelingDate property.</param> /// <param name="dateExpiration">Initial value of the DateExpiration property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="carId">Initial value of the CarId property.</param> /// <param name="distance">Initial value of the Distance property.</param> /// <param name="carMiliage">Initial value of the CarMiliage property.</param> public static FuelTrack CreateFuelTrack(global::System.Int32 id, global::System.DateTime fuelingDate, global::System.DateTime dateExpiration, global::System.Double quantity, global::System.Int32 carId, global::System.Double distance, global::System.Double carMiliage) { FuelTrack fuelTrack = new FuelTrack(); fuelTrack.Id = id; fuelTrack.FuelingDate = fuelingDate; fuelTrack.DateExpiration = dateExpiration; fuelTrack.Quantity = quantity; fuelTrack.CarId = carId; fuelTrack.Distance = distance; fuelTrack.CarMiliage = carMiliage; return(fuelTrack); }
/// <summary> /// Deprecated Method for adding a new object to the FuelTracks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFuelTracks(FuelTrack fuelTrack) { base.AddObject("FuelTracks", fuelTrack); }
private bool FilterFuelTracks(FuelTrack entity) { return (entity.CarId == this.Id); }
private void DetachFuelTracks(FuelTrack entity) { entity.Car = null; }
private void AttachFuelTracks(FuelTrack entity) { entity.Car = this; }
/// <summary> /// Create a new FuelTrack object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="fuelingDate">Initial value of the FuelingDate property.</param> /// <param name="dateExpiration">Initial value of the DateExpiration property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="carId">Initial value of the CarId property.</param> /// <param name="distance">Initial value of the Distance property.</param> /// <param name="carMiliage">Initial value of the CarMiliage property.</param> public static FuelTrack CreateFuelTrack(global::System.Int32 id, global::System.DateTime fuelingDate, global::System.DateTime dateExpiration, global::System.Double quantity, global::System.Int32 carId, global::System.Double distance, global::System.Double carMiliage) { FuelTrack fuelTrack = new FuelTrack(); fuelTrack.Id = id; fuelTrack.FuelingDate = fuelingDate; fuelTrack.DateExpiration = dateExpiration; fuelTrack.Quantity = quantity; fuelTrack.CarId = carId; fuelTrack.Distance = distance; fuelTrack.CarMiliage = carMiliage; return fuelTrack; }