CodeSmith Community
Your Code. Your Way. Faster!

Browse Site by Tags

Showing related tags and posts accross the entire site.
  • Tough Question

    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
  • Re: Processors and Terminating Execution

    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...
    Posted to .netTiers - General Support (Forum) by swin on 02-22-2007
    Filed under: BrokenRules, Validation, Validation ServiceLayer, Processors, Service layer, ServiceLayer
  • Validation Code - Where does it go?

    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...
    Posted to .netTiers - General Support (Forum) by Playground on 02-21-2007
    Filed under: Validation, Validation ServiceLayer, Entities, Entity Validation Rule Engine CommonRules
  • Re: Validation Rulles that Need to accsess database?

    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...
    Posted to .netTiers - General Support (Forum) by Evan on 10-31-2006
    Filed under: Validation ServiceLayer
  • ToString entity method calls Validate - causes StackOverflow

    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
  • Re: Where to hook up Validators and Processors in web context?

    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.
    Posted to .netTiers - General Support (Forum) by Robert Hinojosa on 11-10-2006
    Filed under: Validation ServiceLayer, Processors, MVP
Page 1 of 1 (6 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems