/// <summary>
 /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrders(Order order)
 {
     base.AddObject("Orders", order);
 }
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="tid">Initial value of the Tid property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="modified">Initial value of the Modified property.</param>
 public static Order CreateOrder(global::System.Int64 id, global::System.String tid, global::System.String name, global::System.String createdBy, global::System.String modifiedBy, global::System.DateTimeOffset created, global::System.DateTimeOffset modified)
 {
     Order order = new Order();
     order.Id = id;
     order.Tid = tid;
     order.Name = name;
     order.CreatedBy = createdBy;
     order.ModifiedBy = modifiedBy;
     order.Created = created;
     order.Modified = modified;
     return order;
 }
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="orderReference">Initial value of the OrderReference property.</param>
 /// <param name="orderDate">Initial value of the OrderDate property.</param>
 /// <param name="customer_Order">Initial value of the Customer_Order property.</param>
 /// <param name="order_Employee">Initial value of the Order_Employee property.</param>
 /// <param name="orderPaidFor">Initial value of the OrderPaidFor property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Order CreateOrder(global::System.Int32 id, global::System.String orderReference, global::System.DateTime orderDate, global::System.Int32 customer_Order, global::System.Int32 order_Employee, global::System.Boolean orderPaidFor, global::System.Byte[] rowVersion)
 {
     Order order = new Order();
     order.Id = id;
     order.OrderReference = orderReference;
     order.OrderDate = orderDate;
     order.Customer_Order = customer_Order;
     order.Order_Employee = order_Employee;
     order.OrderPaidFor = orderPaidFor;
     order.RowVersion = rowVersion;
     return order;
 }