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

Business Rule Instance

$
0
0

Hi all..

I read on ebook that said :

one rule instance is shared across all instances of business type.

I want to know a foundation / reason to said that ?

 

this is my current understanding, I hope Rocky or someone else could explain to me  to update my understanding :

 

we insert code to add a rule in

protected override void AddBusinessRules()

{

BusinessRules.AddRule(new MyRule( ..... ));

}

and then when each my business type instances is created this method is called, Is it not mean that I add a new MyRule for each my business instance ?

 

thanks a lot

stefanus

 

 

 

 


Viewing all articles
Browse latest Browse all 764

Trending Articles