-
Can anyone point me to, or provide a sample of lazy loading a child list property asynchronously. I believe the one in the book is outdated. I tried using LazyGetPropertyAsync in the getter but I am getting an error 'Property get not allowed'. I have no Business Rules attached to the property and the exception is not of type Csla.Security.SecurityException. It looks to me that the error is coming from this line of code in BusinessBase ReadPropery method:
My code looks like this:
Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I tried removing the RelationshipTypes.LazyLoad from the RegisterProperty functions. This eliminated the error but the fetch is happening every time the property is used. It is not caching the result. |
Beta Was this translation helpful? Give feedback.
I tried removing the RelationshipTypes.LazyLoad from the RegisterProperty functions. This eliminated the error but the fetch is happening every time the property is used. It is not caching the result.