Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TripRequests EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTripRequests(TripRequest tripRequest)
 {
     base.AddObject("TripRequests", tripRequest);
 }
Example #2
0
 /// <summary>
 /// Create a new TripRequest object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="passengerNum">Initial value of the PassengerNum property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static TripRequest CreateTripRequest(global::System.Int32 id, global::System.Int32 customerId, global::System.String description, global::System.Int32 passengerNum, global::System.Int32 status)
 {
     TripRequest tripRequest = new TripRequest();
     tripRequest.Id = id;
     tripRequest.CustomerId = customerId;
     tripRequest.Description = description;
     tripRequest.PassengerNum = passengerNum;
     tripRequest.Status = status;
     return tripRequest;
 }