This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
If I add the ValidationNoTraverse attribute to an association I get the following error: Attribute 'ValidationNoTraverse' is not valid on this declaration type. It is only valid on 'field' declarations. Please assist... |
|
|
Are you applying it to the association's backing field?
|
|
|
I tried adding it to the following properties on the association:
The Attribute then generates on the Property in the generated .cs. Do I need to set some other property to make it generate on the field? |
|
|
No unfortunately you will need to apply this manually (e.g. by switching the generation mode to None and implementing the field and property in a partial class) to the backing field as its required to be on the field and not on the property. Ill have a look into what we can do to make this property based though but in the meantime you will need to apply this to the backing field.
|
|
|
Thanks Jeremy - that works perfectly. |
|