protected override void Initialize() { CarrierTrackingNumberProperty = new TextProperty(this, CarrierTrackingNumber); CarrierTrackingNumberProperty.Size = 25; CarrierTrackingNumberProperty.Editable = false; LineTotalProperty = new MoneyProperty(this, LineTotal); LineTotalProperty.Required = true; LineTotalProperty.Editable = false; OrderQtyProperty = new SmallIntegerProperty(this, OrderQty); OrderQtyProperty.Required = true; OrderQtyProperty.Editable = false; ProductProperty = new EnumIntProperty(this, Product); ProductProperty.Required = true; ProductProperty.EnumType = "product"; ProductProperty.Editable = false; SalesOrderDetailIdProperty = new IntegerKeyProperty(this, SalesOrderDetailId); SalesOrderDetailIdProperty.Required = true; SalesOrderDetailIdProperty.Editable = false; SpecialOfferProperty = new EnumIntProperty(this, SpecialOffer); SpecialOfferProperty.Required = true; SpecialOfferProperty.EnumType = "special offer"; SpecialOfferProperty.Editable = false; UnitPriceProperty = new MoneyProperty(this, UnitPrice); UnitPriceProperty.Required = true; UnitPriceProperty.Editable = false; UnitPriceDiscountProperty = new MoneyProperty(this, UnitPriceDiscount); UnitPriceDiscountProperty.Required = true; UnitPriceDiscountProperty.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; }