-
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
-
I have been using nettiers for 6 months now and am having a few problems with processors. I know there are multiple posts regarding processors and between them, they have managed to get me up and running for various processors I have written. The problem I am having is related to my understanding of...
-
I have an override on the insert and update methods in one of my service classes that add a processor. Those seem to be working fine, however, when I call the save method on the service supplying either an entity, or collection of entities neither the update, or insert methods are invoked, so how/where...
-
Hi I've been using NetTiers for a few months now and I think I've got to grips with things but I'm not completely clear on the use of processors. It appears to me that the example processor on the NetTiers site (Documentation/Component Layer) will only display the first error it comes across, as the...
-
Hi! In my Component Layer (or Service Layer) , I'm using processors to perform tasks before an Update or an Insert takes place. I also do my complex validation in there. I discovered that if I do something like this in the processor while performing and Update on a Customer entity, then the information...
-
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...
-
Hi! I am working on an ASP.NET projet where I am using Strongly Typed Datasources, and where many web pages are using nested FormViews. Does anyone know how to use transactions to rollback the INSERTS/UPDATES in case an error happens in a sub-FormView? For example, let's say, I have the complex object...
-
Hi! In Post 10543 , Nick wrote: "You may also want to have an Inserting event handler for your DataSource to stitch up entities (but don't validate in there, that should only be done using validation controls in the UI and in the Business Logic Layer)." And in another post, Robert told me to add my custom...
-
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.