Skip to content

Instantly share code, notes, and snippets.

@NickNiebling
Created August 2, 2017 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickNiebling/75d8adcc6ddc604c4fffb305fb4970d9 to your computer and use it in GitHub Desktop.
Save NickNiebling/75d8adcc6ddc604c4fffb305fb4970d9 to your computer and use it in GitHub Desktop.
namespace LocalizationTest.Models
{
public class User
{
public User()
{
}
[Required(ErrorMessageResourceName = "The_0_field_is_required", ErrorMessageResourceType = typeof(App_GlobalResources.Resources))]
[StringLength(maximumLength: 45, ErrorMessageResourceName = "The_field_0_must_be_a_string_w", ErrorMessageResourceType = typeof(App_GlobalResources.Resources))]
public string Name { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment