New Posts New Posts RSS Feed: Avoid Business rules on loading
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Avoid Business rules on loading

 Post Reply Post Reply
Author
rbautistaole View Drop Down
Newbie
Newbie


Joined: 01-Apr-2011
Posts: 37
Post Options Post Options   Quote rbautistaole Quote  Post ReplyReply Direct Link To This Post Topic: Avoid Business rules on loading
    Posted: 12-Jun-2012 at 5:31pm
Hi.
Time ago I used an ORM called XPO. In XPO i have a Session.IsLoading property such that i can discriminate processing of business rules when the entities was loading. Do Devforce has a property like IsLoading tha allow to me avoid process business rules when the entities are loaded?
thanks in advanced
Back to Top
mgood View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 18-Nov-2010
Location: Emeryville, CA
Posts: 583
Post Options Post Options   Quote mgood Quote  Post ReplyReply Direct Link To This Post Posted: 12-Jun-2012 at 7:49pm
Where are you planning on putting your business rules that you would need to know if an entity is loading? If anything you would have business rules in the form of verifiers or custom validation on the entity, which DevForce doesn't call until you save. Any other business rules generally belong outside of the entities into domain services.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down