Articles : Page 1 of 1
- Filter:
- Localization
- Bitbucket
-
Model Metadata and Validation Localization using Conventions
Jul 1114By default, ASP.NET MVC leverages Data Annotations to provide validation. The approach is easy to get started with and allows the validation applied on the server to “float” to the client without any extra work. However, once you get localization involved, using Data Annotations can really clutter your models. For example, the following is a simple model class with two properties. public class Character { public string FirstName { get; set; } public string LastName { get; set; } } Noth...
- 1

