Async Business Rule to Check Unique Attribute Using CSLA 4.2 + SL 4.0 + N Tire + Object Factory with SQL specific DataAccess.

Async Business Rule to Check Unique Attribute Using CSLA 4.2 + SL 4.0 + N Tire + Object Factory with SQL specific DataAccess.

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


NET-H24 posted on Tuesday, December 27, 2011

I have tried to create a business Rule using Following structure

1) ProjectClient

Business Rule is Shared as Link in this project

2) ProjectServer

Business Rule Is defined in this project

How to invoke the methods written on under ProjectDataAccessSQL ?

3) ProjectDataAccess

4) ProjectDataAccessSQL

5) ProjectWeb

 

The Sample Example does not have Async Business rules with the above mentioned Structure. It has everything in a single Project Structure.

JonnyBee replied on Tuesday, December 27, 2011

Hi,

An async business rule will typically use a CommandObject or a ReadOnlyObject with async factory method to do data access in the execute method.

The data access methods will then be called the usual way from those objects - not by the rule directly.

 

 

 

Copyright (c) Marimer LLC