Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Orders" /> class.
 /// </summary>
 /// <param name="OrderId">OrderId.</param>
 /// <param name="CustomerId">CustomerId.</param>
 /// <param name="EmployeeId">EmployeeId.</param>
 /// <param name="OrderDate">OrderDate.</param>
 /// <param name="RequiredDate">RequiredDate.</param>
 /// <param name="ShippedDate">ShippedDate.</param>
 /// <param name="ShipVia">ShipVia.</param>
 /// <param name="Freight">Freight.</param>
 /// <param name="ShipName">ShipName.</param>
 /// <param name="ShipAddress">ShipAddress.</param>
 /// <param name="ShipCity">ShipCity.</param>
 /// <param name="ShipRegion">ShipRegion.</param>
 /// <param name="ShipPostalCode">ShipPostalCode.</param>
 /// <param name="ShipCountry">ShipCountry.</param>
 /// <param name="Customer">Customer.</param>
 /// <param name="Employee">Employee.</param>
 /// <param name="ShipViaNavigation">ShipViaNavigation.</param>
 /// <param name="OrderDetails">OrderDetails.</param>
 public Orders(int?OrderId = default(int?), string CustomerId = default(string), int?EmployeeId = default(int?), DateTime?OrderDate = default(DateTime?), DateTime?RequiredDate = default(DateTime?), DateTime?ShippedDate = default(DateTime?), int?ShipVia = default(int?), double?Freight = default(double?), string ShipName = default(string), string ShipAddress = default(string), string ShipCity = default(string), string ShipRegion = default(string), string ShipPostalCode = default(string), string ShipCountry = default(string), Customers Customer = default(Customers), Employees Employee = default(Employees), Shippers ShipViaNavigation = default(Shippers), List <OrderDetails> OrderDetails = default(List <OrderDetails>))
 {
     this.OrderId           = OrderId;
     this.CustomerId        = CustomerId;
     this.EmployeeId        = EmployeeId;
     this.OrderDate         = OrderDate;
     this.RequiredDate      = RequiredDate;
     this.ShippedDate       = ShippedDate;
     this.ShipVia           = ShipVia;
     this.Freight           = Freight;
     this.ShipName          = ShipName;
     this.ShipAddress       = ShipAddress;
     this.ShipCity          = ShipCity;
     this.ShipRegion        = ShipRegion;
     this.ShipPostalCode    = ShipPostalCode;
     this.ShipCountry       = ShipCountry;
     this.Customer          = Customer;
     this.Employee          = Employee;
     this.ShipViaNavigation = ShipViaNavigation;
     this.OrderDetails      = OrderDetails;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Orders" /> class.
 /// </summary>
 /// <param name="orderId">orderId (required).</param>
 /// <param name="customerId">customerId.</param>
 /// <param name="employeeId">employeeId.</param>
 /// <param name="orderDate">orderDate.</param>
 /// <param name="requiredDate">requiredDate.</param>
 /// <param name="shippedDate">shippedDate.</param>
 /// <param name="shipVia">shipVia.</param>
 /// <param name="freight">freight.</param>
 /// <param name="shipName">shipName.</param>
 /// <param name="shipAddress">shipAddress.</param>
 /// <param name="shipCity">shipCity.</param>
 /// <param name="shipRegion">shipRegion.</param>
 /// <param name="shipPostalCode">shipPostalCode.</param>
 /// <param name="shipCountry">shipCountry.</param>
 /// <param name="customer">customer.</param>
 /// <param name="employee">employee.</param>
 /// <param name="shipViaNavigation">shipViaNavigation.</param>
 /// <param name="orderDetails">orderDetails.</param>
 public Orders(int?orderId = default(int?), string customerId = default(string), int?employeeId = default(int?), DateTime?orderDate = default(DateTime?), DateTime?requiredDate = default(DateTime?), DateTime?shippedDate = default(DateTime?), int?shipVia = default(int?), decimal?freight = default(decimal?), string shipName = default(string), string shipAddress = default(string), string shipCity = default(string), string shipRegion = default(string), string shipPostalCode = default(string), string shipCountry = default(string), Customers customer = default(Customers), Employees employee = default(Employees), Shippers shipViaNavigation = default(Shippers), List <OrderDetails> orderDetails = default(List <OrderDetails>))
 {
     // to ensure "orderId" is required (not null)
     if (orderId == null)
     {
         throw new InvalidDataException("orderId is a required property for Orders and cannot be null");
     }
     else
     {
         this.OrderId = orderId;
     }
     this.CustomerId        = customerId;
     this.EmployeeId        = employeeId;
     this.OrderDate         = orderDate;
     this.RequiredDate      = requiredDate;
     this.ShippedDate       = shippedDate;
     this.ShipVia           = shipVia;
     this.Freight           = freight;
     this.ShipName          = shipName;
     this.ShipAddress       = shipAddress;
     this.ShipCity          = shipCity;
     this.ShipRegion        = shipRegion;
     this.ShipPostalCode    = shipPostalCode;
     this.ShipCountry       = shipCountry;
     this.Customer          = customer;
     this.Employee          = employee;
     this.ShipViaNavigation = shipViaNavigation;
     this.OrderDetails      = orderDetails;
 }