/// <summary>
 /// Deprecated Method for adding a new object to the Jobs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToJobs(Job job)
 {
     base.AddObject("Jobs", job);
 }
 /// <summary>
 /// Create a new Job object.
 /// </summary>
 /// <param name="jobID">Initial value of the JobID property.</param>
 /// <param name="jobTypeID">Initial value of the JobTypeID property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="deliveryOrPickup">Initial value of the DeliveryOrPickup property.</param>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 public static Job CreateJob(global::System.Int32 jobID, global::System.Int32 jobTypeID, global::System.Int32 quantity, global::System.String deliveryOrPickup, global::System.Guid customerID)
 {
     Job job = new Job();
     job.JobID = jobID;
     job.JobTypeID = jobTypeID;
     job.Quantity = quantity;
     job.DeliveryOrPickup = deliveryOrPickup;
     job.CustomerID = customerID;
     return job;
 }
Beispiel #3
0
 public static void UpdateJob(Job data)
 {
     (new Entities()).Job_Update(data.JobID, data.JobTypeID, data.SpecialInstructions, data.Quantity, data.DeliveryOrPickup, data.CustomerID, data.PromiseDate, data.StartDate);
 }