protected override void Initialize()
 {
     AccountNumberProperty = new TextProperty(this, AccountNumber);
     AccountNumberProperty.Size = 10;
     AccountNumberOperatorProperty = new OperatorProperty(this, AccountNumberOperator);
     AccountNumberOperatorProperty.Size = 10;
     AccountNumberOperatorProperty.EnumType = "operators";
     PersonNameProperty = new TextProperty(this, PersonName);
     PersonNameOperatorProperty = new OperatorProperty(this, PersonNameOperator);
     PersonNameOperatorProperty.Size = 10;
     PersonNameOperatorProperty.EnumType = "operators";
     PersonNameOperatorProperty.HasNullCheck = true;
     StoreNameProperty = new TextProperty(this, StoreName);
     StoreNameOperatorProperty = new OperatorProperty(this, StoreNameOperator);
     StoreNameOperatorProperty.Size = 10;
     StoreNameOperatorProperty.EnumType = "operators";
     StoreNameOperatorProperty.HasNullCheck = true;
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
 }
 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";
 }