Difference b/w Instance and normal versions of Athorization and Business rules

Difference b/w Instance and normal versions of Athorization and Business rules

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


Lalit posted on Tuesday, May 20, 2008

Can anybody provide some example to show the difference between "AddAuthorizationRules" and "AddInstanceAuthorizationRules" as well as "AddBusinessRules" and "AddInstanceBusinessRules"?

RockfordLhotka replied on Tuesday, May 20, 2008

You should try to avoid using the Instance options. This is discussed in the CSLA .NET Version 2.1 Handbook, and you can see the implementation and use of both options.

The primary difference is that the Instance options are slower and consume more memory, while the per-type options (which are the default) are faster and consume less memory.

Copyright (c) Marimer LLC