Showing related tags and posts accross the entire site.
-
I've see many users ask this question and to date I've yet to find a response that actually answers the question. If I have an Entity validation rule that requires a trip to the database and also requires that it be part of any INSERT or UPDATE action on the entity how would this be implemented...
Posted to
.netTiers - General Support
(Forum)
by
njappboy
on
06-23-2008
Filed under: Validation, ComponentLayer, Validation ServiceLayer, Validators, Processors, Entity Layer, Entities, ServiceLayer, business rules, Processorsvalidators, C#, Transaction, Save, Processors ValidationRules BrokenRulesList, .netTiers 2.3.0, Validation ServiceLayer Validate IsValid Entity
-
Hi Scott, This is quite simple to do - just use the Execute overload that takes a boolean to decide whether to "abortIfFailure" i.e. ServiceResult result = this.Execute( true ); This causes the execute method to check the ProcessorResult "Result" property to see if it is false i.e there is no result...
-
I am seeing a lot of messages about overloading the "AddValidationRules()" method but I don't know where it goes? protected override void AddValidationRules() { base .AddValidationRules(); //Add custom validation rules } I have created a custom class based on an auto generated Entity class ( public class...
-
Hi Nexus-SB (and swin), I faced a similar problem. I have an entity (Salary) that has a percentage. When a Salary is inserted or updated, I need to compare its percentage with the percentage of all other Salaries for some employee. I, too, wanted to avoid data access from the entity layer with validation...
-
I recently upgraded to version 749 of nettiers only to find some strange changes that cause StackOverflows to occur when entity ToString() method is called during a validation process. The new EntityInstanceBase.generated.cst template has a ToString override. In the override method there is a call to...
Posted to
.netTiers - General Support
(Forum)
by
njappboy
on
07-15-2008
Filed under: Validation, Validation ServiceLayer, DeepSave, Validators, Processors, DeepLoad, Processorsvalidators, Processors NetTiersMystery, Processors ValidationRules BrokenRulesList, override, .netTiers 2.3.0, Validation ServiceLayer Validate IsValid Entity, DeepSave problem children processors
-
Hi, I personally now use Fowler's Model View Presenter in my web apps, and put my validators in a View class. So whatever custom processors/validations need to be in use for that view is what is created.