Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Per type rule example

$
0
0

Hello,

I have a business object for which I need to make some validations that involve several properties of the object and more data that I will need to read from the database. I'm using this object in an MVC application and I though that will be better to run this validation once, after all the related properties are set. In other objects with regular rules I usually suppress the rule checks, set all the properties and then call CheckRules before saving.

Should I use a Per-Type rule? I was looking the ebook "Creating business objects" and couldn't find any example or to much detail about per-type rules.

I would like somebody to point me in the right direction.

Thanks in advance.


Viewing all articles
Browse latest Browse all 764

Trending Articles