Skip to content

danielwagn3r/DataAnnotionTests

Repository files navigation

DataAnnotionTests

Demonstrate dataAnnotations:dataTypeAttribute:disableRegEx change

With .Net Framework 4.7.2 the default for app setting dataAnnotations:dataTypeAttribute:disableRegEx changed to true, which enforces users of EmailAddressAttribute, UrlAttribute and PhoneAttribute to mitigate the less accurate validation without the previously used regular expressions.

With .Net Core the possibilty to change the behaviour with an app setting was removed at all.

See https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/runtime/4.7.1-4.7.2 and dotnet/dotnet-api-docs#1201 for reference.

About

Demonstrate dataAnnotations:dataTypeAttribute:disableRegEx change

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages