in

CodeSmith Community

Your Code. Your Way. Faster!

Browse by Tags

  • Validation Application Block patch

    This is a patch to remove the .netTiers generated validation and replace it with an attribute based validation implementation using the Enterprise Library Validation Application Block. You will still have to manually reference the validation dll currently. I would like feedback before making any more...
    Posted to .netTiers - Contributions and Patches (Forum) by katokay on 05-23-2007
    Filed under: Validation
  • Mapping.config field length and required constraints for Validation Application Block

    If this information is added to the mapping.config file I will implement a XSL transform to generate the Validation Application Block config file rulesets for .netTiers. Any other constraints that can be added as well would be nice, but currently only not null and string length were used.
    Posted to .netTiers - Feature Requests (Forum) by katokay on 05-23-2007
    Filed under: Validation, mapping file
  • Re-populating the multiview form after the insert fail on validations

    Hi There, I am very new to .net tiers, Can any one help me out to sort this problem: I have a form with some business logic validation. I want my form to re-populate the original values typed in by user after it fails the business validation. At the moment the validation messages are displayed but the...
    Posted to .netTiers - General Support (Forum) by zainuddin on 04-17-2007
    Filed under: Validation, ASp.NET, C#, .net 2.0
  • 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, Processors, Service layer, ServiceLayer, Validation, Validation 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: Entities, Entity Validation Rule Engine CommonRules, Validation, Validation ServiceLayer
  • Question about Validation Rules

    Hi! Suppose you have a web interface (ASP.NET) to enter information about new clients, and that one of the rules you want to implement is that two clients cannot have the same name. Where would you put the validation for this or for similar scenarios? At first, I thought I would simply write a new Validation...
    Posted to .netTiers - General Support (Forum) by velum on 01-17-2007
    Filed under: Entities, ServiceLayer, Validation
  • Validation across properties in same class

    I saw a couple of threads about validating across classes, but I need something simpler. I have an object.StartDate and object.EndDate, and I'd like to ensure that the StartDate is less than or equal to the EndDate. I tried associating a custom rule StartIsLessThanOrEqualToEnd with both properties, but...
    Posted to .netTiers - General Support (Forum) by davem1958@gmail.com on 11-27-2006
    Filed under: Validation, Validators
  • Re: Handling EDS events

    Evan, Great implementation! I’ve made a tiny enhancement to the class to be able to read broken rules for those business entities that are not used in the business process pipeline. using System; using System.Collections.Generic; using System.Text; using System.Web.UI.WebControls; using RootNamespace...
    Posted to .netTiers - General Support (Forum) by mike123 on 11-22-2006
    Filed under: EntityNotValidException, Service layer, Validation
  • Where to catch EntityNotValidException in ASP.NET projects?

    Hi! I would like to know where exceptions should be caught in a web project. I added an e-mail address Validation Rule to an entity. Now, if I enter an invalid e-mail address, I'm getting an error page with the following on it: Unhandled Execution Error Description: An unhandled exception occurred during...
    Posted to .netTiers - General Support (Forum) by velum on 11-20-2006
    Filed under: ASp.NET, Try/Catch, Validation, Web project
  • Re: YAVQ (Yet another validation question)

    Mark, You will need to use delegates to define your own validation rules. Have you taken a look at the documentation on the wiki? http://wiki.nettiers.com/entitylayer It includes information on using the validation rules engine. You can use custom delegates to make your validation as complex as necessary...
    Posted to .netTiers - General Support (Forum) by bgjohnso on 10-31-2006
    Filed under: .netTiers, DateTime, Validation
Page 1 of 3 (29 items) 1 2 3 Next >
Copyright © 2007 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems