Hi,
Otis wrote:
Override in your entity, GetProperties.
First call the base method. This will give you property descriptors in a PropertyDescriptorCollection (it's ICustomTypeDescriptor.GetProperties). You then should add a property descriptor for your field. You can use EntityPropertyDescriptor (or EntityPropertyDescriptor2) for that. It's a bit complex, but I think it's doable.
http://www.llblgen.com/TinyForum/GotoMessage.aspx?MessageID=17985&ThreadID=3250
Can I still do this with LLBLGen 2.5? I can't see the GetProperties method.
Basically I would like to add some virtual fields at runtime. These should appear in a datagrid via data binding. The getter and setter for the different virtual properties should all be handled by two methods if possible. For example something like this:
object GetVirtualValue(String propertyName)
void SetVirtualValue(string propertyName, object value)
Is there any way to do this and if yes how would I do this please?
Thank you,
Patrick
LLBLGen 2.5; SQL Server 2005; C#; VS2005; Adapter Template