CslaLight - I need example of validation rule for parent-child scenario

CslaLight - I need example of validation rule for parent-child scenario

Old forum URL: forums.lhotka.net/forums/t/6637.aspx


Fel posted on Thursday, March 19, 2009

I need to check if child objects exist.
How can I do it?

I appreciate any help.
Fel

RockfordLhotka replied on Thursday, March 19, 2009

Inside your object you can do:

if (FieldManager.FieldExists(ChildProperty))

and that will tell you if that child property has been loaded with an object or not.

Same code on .NET as SL for this sort of thing.

Copyright (c) Marimer LLC