fluentvalidation
Injecting a DbContext into a FluentValidation validator
I am using the FluentValidation library to enforce a unique constraint on one of my models: public class Foo {[详细]
2023-03-29 07:43 分类:问答How do I use fluent validation to validate an object which contains more objects of the same type?
I have a class Action which h开发者_运维问答as a collection of more Action objects. Something like this:[详细]
2023-03-29 01:31 分类:问答Fluent Validation and Collection Validation Issues in MVC 3
I\'m hoping I\'m missing something simple here. I\'ve configured Fluent Validation for integration with MVC and it\'s been working quite well up until now. I\'m now working on a scenario where a user[详细]
2023-03-26 10:29 分类:问答How can I prevent a VerificationException when running a test with attached debugger?
Whenever I run either of the following unit test with a debugger attached, I get a VerificationException inside FluentValidation code at this point (will post whole stacktrace later if necessary):[详细]
2023-03-23 01:24 分类:问答Fluent Validation vs. Data Annotations
What are the operative differences between these two validation packages when used for ASP.NET MVC validatation? They seem to have similar objects, all the way to their object na开发者_高级运维mes. Is[详细]
2023-03-22 08:26 分类:问答Fluent Validation and IoC (Unique Field)
I\'m developing a web application with asp.net mvc 3 and DDD. For my domain model validation, I\'ve been using Fluent Validation. It\'s my first project with fluent validation and I\'m still learning[详细]
2023-03-21 19:21 分类:问答MVC3 Architecture/Validation Question
I think this is a pretty simple task, but I can\'t for the life of me get it working. Environment - MVC3, FluentValidation, StructureMap.[详细]
2023-03-17 05:24 分类:问答How to pass a value into the error message using fluent validation
Is it possible to pass a value into the error message. I have tried something like this: RuleFor(x =>开发者_高级运维; x.ForeName).Length(1, 255).WithLocalizedMessage(() => String.Format(Validati[详细]
2023-03-15 08:13 分类:问答Ninjects with fluentvalidation
I am looking for some help on how to implement the fluentvalidation framework with ninjects as DI framework.[详细]
2023-03-04 19:37 分类:问答Nested Razor layouts causing client validation to fail
Here\'s my original create page (no nesting) - Client validation works @model TennisClub.ViewModels.ClubMember.EditorModel[详细]
2023-03-03 21:00 分类:问答