/// <summary>
 /// Create a new Worker object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="workerName">Initial value of the WorkerName property.</param>
 /// <param name="hireDate">Initial value of the HireDate property.</param>
 /// <param name="discontinued">Initial value of the Discontinued property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Worker CreateWorker(global::System.Int32 id, global::System.String workerName, global::System.DateTime hireDate, global::System.Boolean discontinued, global::System.Byte[] rowVersion)
 {
     Worker worker = new Worker();
     worker.Id = id;
     worker.WorkerName = workerName;
     worker.HireDate = hireDate;
     worker.Discontinued = discontinued;
     worker.RowVersion = rowVersion;
     return worker;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Workers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWorkers(Worker worker)
 {
     base.AddObject("Workers", worker);
 }