Minor Update to XPO_EasyFields (beta)
Hi Guys,
As per a previous post, I mentioned about not being able to use XPO_EasyFields with Attributes as there is a compiler restriction that you must use Constant expressions. The FieldsClass however is not Constant, it is a static class that is created and new OperandProperty classes returned.
So I trialled out the idea of having XPO generate Constants in the FieldsClass and it sort of works.
Basically XPO_EasyFields (when you enable the option in the Options window) will generate a <MyProperty>FieldName constant of String which returns the <MyProperty> name.
PLEASE NOTE:
- You have to reference the FieldsClass NOT the Fields property
- It appears when using it in Attributes you have to specifically specify the full namespace, therefore
<ProjectNamespace>.<ObjectNamespace(if any)>.<Object>.FieldsClass.<MyProperty>FieldName
So here is a link to the build, let us know what you think, is this something useable or not? I have used it a bit in my project and I am still 50/50 on it.
Latest Comments
- Simple Collection to...
Hey Norman, Keep in mind that Baritem ar... More... - Simple Collection to...
Great many thanks - this said, I'm looki... More... - Simple Collection to...
I just checked my class here and it stil... More... - Simple Collection to...
I'm using Winform DevExpress Library - a... More... - XPO ObjectLayer Tuto...
Cheers Glen, I have held off continuing ... More...





