protected override void Initialize()
 {
     SalesPersonIdProperty = new EnumIntProperty(this, SalesPersonId);
     SalesPersonIdProperty.EnumType = "sales person";
     SalesReasonProperty = new EnumIntProperty(this, SalesReason);
     SalesReasonProperty.IsMultiValued = true;
     SalesReasonProperty.Size = 10;
     SalesReasonProperty.EnumType = "sales reason";
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
 }
 protected override void Initialize()
 {
     CardNumberProperty = new TextProperty(this, CardNumber);
     CardNumberProperty.Required = true;
     CardNumberProperty.Size = 25;
     CardNumberProperty.Editable = false;
     CreditCardApprovalCodeProperty = new TextProperty(this, CreditCardApprovalCode);
     CreditCardApprovalCodeProperty.Size = 15;
     CreditCardIdProperty = new EnumIntProperty(this, CreditCardId);
     CreditCardIdProperty.Size = 10;
     ExpirationProperty = new TextProperty(this, Expiration);
     ExpirationProperty.Editable = false;
 }
 protected override void Initialize()
 {
     AddressIdProperty = new EnumIntProperty(this, AddressId);
     AddressIdProperty.Required = true;
     AddressIdProperty.Size = 10;
     AddressLine1Property = new TextProperty(this, AddressLine1);
     AddressLine1Property.Required = true;
     AddressLine1Property.Size = 60;
     AddressLine1Property.Editable = false;
     AddressLine2Property = new TextProperty(this, AddressLine2);
     AddressLine2Property.Size = 60;
     AddressLine2Property.Editable = false;
     CityStateProperty = new TextProperty(this, CityState);
     CityStateProperty.Size = 30;
     CityStateProperty.Editable = false;
     CountryProperty = new TextProperty(this, Country);
     CountryProperty.Size = 3;
     CountryProperty.Editable = false;
     PostalCodeProperty = new TextProperty(this, PostalCode);
     PostalCodeProperty.Required = true;
     PostalCodeProperty.Size = 15;
     PostalCodeProperty.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 = 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()
 {
     AccountNumberProperty = new TextProperty(this, AccountNumber);
     AccountNumberProperty.Required = true;
     AccountNumberProperty.Size = 10;
     AccountNumberProperty.Editable = false;
     CustomerIdProperty = new IntegerKeyProperty(this, CustomerId);
     CustomerIdProperty.Required = true;
     CustomerIdProperty.Editable = false;
     PersonIdProperty = new IntegerKeyProperty(this, PersonId);
     PersonIdProperty.Editable = false;
     PersonNameProperty = new TextProperty(this, PersonName);
     PersonNameProperty.Editable = false;
     StoreIdProperty = new IntegerKeyProperty(this, StoreId);
     StoreIdProperty.Editable = false;
     StoreNameProperty = new TextProperty(this, StoreName);
     StoreNameProperty.Editable = false;
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
     TerritoryIdProperty.Editable = false;
 }
 protected override void Initialize()
 {
     CarrierTrackingNumberProperty = new TextProperty(this, CarrierTrackingNumber);
     CarrierTrackingNumberProperty.Size = 25;
     LineTotalProperty = new MoneyProperty(this, LineTotal);
     LineTotalProperty.Required = true;
     ModifiedDateProperty = new DateTimeProperty(this, ModifiedDate);
     ModifiedDateProperty.Required = true;
     OrderQtyProperty = new SmallIntegerProperty(this, OrderQty);
     OrderQtyProperty.Required = true;
     ProductIdProperty = new EnumIntProperty(this, ProductId);
     ProductIdProperty.Required = true;
     ProductIdProperty.Size = 10;
     ProductIdProperty.EnumType = "product";
     RowguidProperty = new GuidProperty(this, Rowguid);
     RowguidProperty.Required = true;
     SalesOrderDetailIdProperty = new IntegerKeyProperty(this, SalesOrderDetailId);
     SalesOrderDetailIdProperty.Required = true;
     SalesOrderDetailIdProperty.Editable = false;
     SalesOrderIdProperty = new IntegerKeyProperty(this, SalesOrderId);
     SalesOrderIdProperty.Required = true;
     SalesOrderIdProperty.Editable = false;
     SpecialOfferIdProperty = new EnumIntProperty(this, SpecialOfferId);
     SpecialOfferIdProperty.Required = true;
     SpecialOfferIdProperty.Size = 10;
     SpecialOfferIdProperty.EnumType = "special offer";
     UnitPriceProperty = new MoneyProperty(this, UnitPrice);
     UnitPriceProperty.Required = true;
     UnitPriceDiscountProperty = new MoneyProperty(this, UnitPriceDiscount);
     UnitPriceDiscountProperty.Required = true;
 }
 protected override void Initialize()
 {
     CurrencyRateProperty = new TextProperty(this, CurrencyRate);
     CurrencyRateProperty.Editable = false;
     DueDateProperty = new DateProperty(this, DueDate);
     DueDateProperty.Required = true;
     FreightProperty = new MoneyProperty(this, Freight);
     FreightProperty.Required = true;
     FreightProperty.Editable = false;
     ShipMethodIdProperty = new EnumIntProperty(this, ShipMethodId);
     ShipMethodIdProperty.Required = true;
     ShipMethodIdProperty.Size = 10;
     ShipMethodIdProperty.EnumType = "ship method";
     SubTotalProperty = new MoneyProperty(this, SubTotal);
     SubTotalProperty.Required = true;
     SubTotalProperty.Editable = false;
     TaxAmtProperty = new MoneyProperty(this, TaxAmt);
     TaxAmtProperty.Required = true;
     TaxAmtProperty.Editable = false;
     TotalDueProperty = new MoneyProperty(this, TotalDue);
     TotalDueProperty.Required = true;
     TotalDueProperty.Editable = false;
     DataObject objCreditCard = new CreditCardPaymentObjectCustomized();
     AddChildObject(CreditCard, objCreditCard);
 }
 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()
 {
     AccountNumberProperty = new TextProperty(this, AccountNumber);
     AccountNumberProperty.Required = true;
     AccountNumberProperty.Size = 10;
     AccountNumberProperty.Editable = false;
     CustomerIdProperty = new IntegerKeyProperty(this, CustomerId);
     CustomerIdProperty.Required = true;
     PersonIdProperty = new IntegerKeyProperty(this, PersonId);
     PersonIdProperty.Editable = false;
     PersonNameProperty = new TextProperty(this, PersonName);
     PersonNameProperty.Editable = false;
     StoreIdProperty = new IntegerKeyProperty(this, StoreId);
     StoreIdProperty.Editable = false;
     StoreNameProperty = new TextProperty(this, StoreName);
     StoreNameProperty.Editable = false;
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
     TerritoryIdProperty.Editable = false;
     DataObject objLookup = new SalesCustomerLookupObject();
     AddChildObject(Lookup, objLookup);
     DataObject objBillingAddress = new AddressObjectCustomized();
     AddChildObject(BillingAddress, objBillingAddress);
     DataObject objShippingAddress = new AddressObjectCustomized();
     AddChildObject(ShippingAddress, objShippingAddress);
 }