DevExpress C# sample code:
[Association]
public XPCollection<Order> Orders {
get { return GetCollection<Order>(nameof(Orders)); }
}
I'm trying to get back a collection of "Order" objects by
invoking the GetCollection method. The Visual COBOL editor shows this syntax for method:
XPBaseObject::GetCollection(propertyName AS string) RETURNING type DevExpress.Xpo.XPCollection[type T].
This is what I've coded so far:
property-id trans_items type XPCollection[type WN_160_UnitOfWork.trans_item] public
attribute Association.
getter.
set property-value to GetCollection("trans_items")
end property.
The editor tells me I can't convert type DevExpress.Xpo.XPCollection to what I've defined in the property-id statement.




