data-annotations
Custom Validation is only run once
I am creating an MVVM Silverlight application and am trying to add validation to my Model. 开发者_Go百科[详细]
2023-03-04 06:54 分类:问答How can I ignore case in a RegularExpression?
I have an asp.net MVC application. There is an entity called File that it has a property called Name.[详细]
2023-03-04 03:59 分类:问答Is it possible to use DataAnnotations with Interfaces?
开发者_运维知识库I want to use DataAnnotations to validate classes that implements some interfaces, and so I\'m adding validation attributes to the interface, like this:[详细]
2023-03-04 03:21 分类:问答How to have DataAnnotations persist down to ViewModels
In my application I have my Model structure decorated with DataAnnotations. This helps with my validation perfectly, however I\'m not sure how to have those DataAnnotations persist down to my ViewM开发[详细]
2023-03-03 10:11 分类:问答asp.net mvc - DTO not picking up incorrect input
I have a basic DTO object which I am trying to update, I noticed if I post some data from the UI to the controller and I enter string inside a decimal field the data annotations validation does not pi[详细]
2023-03-03 04:03 分类:问答Fluent Mappings / Data Annotations for Unique columns and navigation properties with differant names in Entity Framework 4.1?
First, is there a way to tell EF 4.1 that a column needs to be unique by using either data annotations or the fluent API?[详细]
2023-03-02 17:07 分类:问答Is it possible to generate computed values for properties when using Data Annotation Validation in ASP.NET MVC (3)?
As the title says, is it possible to generate computed values for properties when using Data Annotation Validation in ASP.NET MVC (3)?[详细]
2023-03-01 17:50 分类:问答Adding DataAnnotation to class when using FluentValidation
I use the FluentValidation framework to add validation and annotations to my models in an MVC project.[详细]
2023-03-01 16:56 分类:问答Properly using jQuery dialog with partial view, validation and navigation
I am working on an ASP.NET MVC 2 application and am struggling to get the desired behavior from a dialog window in one of my pages.Think of it as something like the \"Add New Item\" window in Visual S[详细]
2023-02-28 03:13 分类:问答Share DataAnnotations MetaData class between server and client
I\'m curious if this is a crazy idea.Right now I have a typical structure as follows Client (currently asp.net mvc3, but could be anything in the future)[详细]
2023-02-28 03:10 分类:问答