LLBLGen Runtime Libs 2.6.08.0911
Adapter
I am using my DAL library with a DevExpress grid for WPF. I have a ClientAccountEntity class that references a ContactEntity with the property Contact. With databinding I'm unable to access the Contact property, as DevExpress tells me the property descriptor for this property returns null.
Here is the thread from DevExpress:
Hi Josh,
Thank you for your test project. We see the problem.
There is a SD.LLBLGen.Pro.ORMSupportClasses.EntityView2 class that is used as the grid's data source. It implements the ITypedList interface, so the grid's data controller gets property descriptors via the ITypedList.GetProperties method. However, there is no "Contact" property in the list:
SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<ClientAccountEntity> list = new SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<ClientAccountEntity>(new EntityCollection<ClientAccountEntity>());
PropertyDescriptor fromList = list.GetItemProperties(null)["Contact"]; // fromList == null
PropertyDescriptor fromType = TypeDescriptor.GetProperties(typeof(ClientAccountEntity))["Contact"]; // fromType != null
Thanks,
Nick
Do you have any recommendation as to why this is not working, or a suggestion as to how I should reply to this thread for more information?
Thanks,
-Josh