コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the VehicleServices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToVehicleServices(VehicleService vehicleService)
 {
     base.AddObject("VehicleServices", vehicleService);
 }
コード例 #2
0
 /// <summary>
 /// Create a new VehicleService object.
 /// </summary>
 /// <param name="vehicleServiceID">Initial value of the VehicleServiceID property.</param>
 /// <param name="serviceDate">Initial value of the ServiceDate property.</param>
 /// <param name="serviceTime">Initial value of the ServiceTime property.</param>
 public static VehicleService CreateVehicleService(global::System.Int32 vehicleServiceID, global::System.DateTime serviceDate, global::System.TimeSpan serviceTime)
 {
     VehicleService vehicleService = new VehicleService();
     vehicleService.VehicleServiceID = vehicleServiceID;
     vehicleService.ServiceDate = serviceDate;
     vehicleService.ServiceTime = serviceTime;
     return vehicleService;
 }