protected override void Initialize()
 {
     CustomerNameProperty = new TextProperty(this, CustomerName);
     CustomerNameProperty.Editable = false;
     CustomerStoreProperty = new TextProperty(this, CustomerStore);
     CustomerStoreProperty.Editable = false;
     DueDateProperty = new DateProperty(this, DueDate);
     DueDateProperty.Required = true;
     DueDateProperty.Editable = false;
     OnlineOrderFlagProperty = new EnumBoolProperty(this, OnlineOrderFlag);
     OnlineOrderFlagProperty.Required = true;
     OnlineOrderFlagProperty.Size = 10;
     OnlineOrderFlagProperty.EnumType = "yesno";
     OnlineOrderFlagProperty.Editable = false;
     OrderDateProperty = new DateProperty(this, OrderDate);
     OrderDateProperty.Required = true;
     OrderDateProperty.Editable = false;
     SalesOrderIdProperty = new IntegerKeyProperty(this, SalesOrderId);
     SalesOrderIdProperty.Required = true;
     SalesOrderIdProperty.Editable = false;
     SalesOrderNumberProperty = new TextProperty(this, SalesOrderNumber);
     SalesOrderNumberProperty.Required = true;
     SalesOrderNumberProperty.Size = 25;
     SalesOrderNumberProperty.Editable = false;
     SalesPersonIdProperty = new EnumIntProperty(this, SalesPersonId);
     SalesPersonIdProperty.EnumType = "sales person";
     SalesPersonIdProperty.Editable = false;
     ShipDateProperty = new DateProperty(this, ShipDate);
     ShipDateProperty.Editable = false;
     StatusProperty = new EnumByteProperty(this, Status);
     StatusProperty.Required = true;
     StatusProperty.Size = 10;
     StatusProperty.EnumType = "sales order status";
     StatusProperty.Editable = false;
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
     TerritoryIdProperty.Editable = false;
     TotalDueProperty = new MoneyProperty(this, TotalDue);
     TotalDueProperty.Required = true;
     TotalDueProperty.Editable = false;
 }
 protected override void Initialize()
 {
     CustomerNameProperty = new TextProperty(this, CustomerName);
     CustomerNameOperatorProperty = new OperatorProperty(this, CustomerNameOperator);
     CustomerNameOperatorProperty.Size = 10;
     CustomerNameOperatorProperty.EnumType = "operators";
     CustomerNameOperatorProperty.HasNullCheck = true;
     CustomerStoreProperty = new TextProperty(this, CustomerStore);
     CustomerStoreOperatorProperty = new OperatorProperty(this, CustomerStoreOperator);
     CustomerStoreOperatorProperty.Size = 10;
     CustomerStoreOperatorProperty.EnumType = "operators";
     CustomerStoreOperatorProperty.HasNullCheck = true;
     DueDateProperty = new DateProperty(this, DueDate);
     DueDate2Property = new DateProperty(this, DueDate2);
     DueDateOperatorProperty = new OperatorProperty(this, DueDateOperator);
     DueDateOperatorProperty.Size = 10;
     DueDateOperatorProperty.EnumType = "operators";
     GlobalRegionProperty = new EnumProperty(this, GlobalRegion);
     GlobalRegionProperty.Size = 50;
     GlobalRegionProperty.EnumType = "sales territory group";
     OrderDateProperty = new DateProperty(this, OrderDate);
     OrderDate2Property = new DateProperty(this, OrderDate2);
     OrderDateOperatorProperty = new OperatorProperty(this, OrderDateOperator);
     OrderDateOperatorProperty.Size = 10;
     OrderDateOperatorProperty.EnumType = "operators";
     SalesOrderNumberProperty = new TextProperty(this, SalesOrderNumber);
     SalesOrderNumberProperty.Size = 25;
     SalesOrderNumberOperatorProperty = new OperatorProperty(this, SalesOrderNumberOperator);
     SalesOrderNumberOperatorProperty.Size = 10;
     SalesOrderNumberOperatorProperty.EnumType = "operators";
     SalesPersonIdProperty = new EnumIntProperty(this, SalesPersonId);
     SalesPersonIdProperty.IsMultiValued = true;
     SalesPersonIdProperty.EnumType = "sales person";
     SalesPersonIdOperatorProperty = new OperatorProperty(this, SalesPersonIdOperator);
     SalesPersonIdOperatorProperty.Size = 10;
     SalesPersonIdOperatorProperty.EnumType = "operators";
     SalesPersonIdOperatorProperty.HasNullCheck = true;
     StatusProperty = new EnumByteProperty(this, Status);
     StatusProperty.Size = 10;
     StatusProperty.EnumType = "sales order status";
     StatusOperatorProperty = new OperatorProperty(this, StatusOperator);
     StatusOperatorProperty.Size = 10;
     StatusOperatorProperty.EnumType = "operators";
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
     TerritoryIdOperatorProperty = new OperatorProperty(this, TerritoryIdOperator);
     TerritoryIdOperatorProperty.Size = 10;
     TerritoryIdOperatorProperty.EnumType = "operators";
     TerritoryIdOperatorProperty.HasNullCheck = true;
     TotalDueProperty = new MoneyProperty(this, TotalDue);
     TotalDue2Property = new MoneyProperty(this, TotalDue2);
     TotalDueOperatorProperty = new OperatorProperty(this, TotalDueOperator);
     TotalDueOperatorProperty.Size = 10;
     TotalDueOperatorProperty.EnumType = "operators";
 }
 protected override void Initialize()
 {
     AccountNumberProperty = new TextProperty(this, AccountNumber);
     AccountNumberProperty.Size = 15;
     CommentProperty = new TextProperty(this, Comment);
     CommentProperty.Size = 128;
     ModifiedDateProperty = new DateTimeProperty(this, ModifiedDate);
     ModifiedDateProperty.Required = true;
     ModifiedDateProperty.Editable = false;
     OnlineOrderFlagProperty = new BooleanProperty(this, OnlineOrderFlag);
     OnlineOrderFlagProperty.Required = true;
     OrderDateProperty = new DateProperty(this, OrderDate);
     OrderDateProperty.Required = true;
     OrderDateProperty.Editable = false;
     PurchaseOrderNumberProperty = new TextProperty(this, PurchaseOrderNumber);
     PurchaseOrderNumberProperty.Size = 25;
     RevisionNumberProperty = new TinyIntegerProperty(this, RevisionNumber);
     RevisionNumberProperty.Required = true;
     RevisionNumberProperty.Editable = false;
     SalesOrderIdProperty = new IntegerKeyProperty(this, SalesOrderId);
     SalesOrderIdProperty.Required = true;
     SalesOrderIdProperty.Editable = false;
     SalesOrderNumberProperty = new TextProperty(this, SalesOrderNumber);
     SalesOrderNumberProperty.Required = true;
     SalesOrderNumberProperty.Size = 25;
     SalesOrderNumberProperty.Editable = false;
     ShipDateProperty = new DateProperty(this, ShipDate);
     StatusProperty = new EnumByteProperty(this, Status);
     StatusProperty.Required = true;
     StatusProperty.Size = 10;
     StatusProperty.EnumType = "sales order status";
     DataObject objCustomer = new SalesOrderCustomerObjectCustomized();
     AddChildObject(Customer, objCustomer);
     DataObject objDetail = new SalesOrderDetailList();
     AddChildObject(Detail, objDetail);
     DataObject objPayment = new SalesOrderPaymentObject();
     AddChildObject(Payment, objPayment);
     DataObject objSales = new SalesOrderSalesObjectCustomized();
     AddChildObject(Sales, objSales);
 }