Print Page | Close Window

Avoid Business rules on loading

Printed From: IdeaBlade
Category: Cocktail
Forum Name: Community Forum
Forum Discription: A professional application framework using Caliburn.Micro and DevForce
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3494
Printed Date: 28-Apr-2024 at 11:57am


Topic: Avoid Business rules on loading
Posted By: rbautistaole
Subject: Avoid Business rules on loading
Date 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



Replies:
Posted By: mgood
Date 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.



Print Page | Close Window