warrenbuckley / CWS-Umbraco-Standard-Membership

This is used to give an example standard membership to Umbraco V6 +
19 stars 9 forks source link

DataAnnotations not recognized #3

Closed Mantus667 closed 11 years ago

Mantus667 commented 11 years ago

That's maybe more a hint than actually an issue. The DataAnnotations for [URL], [EmailAdress] and [MinLenght] are new to .Net 4.5 and not found if using an older version of the framework. Maybe that should be stated somewhere?

warrenbuckley commented 11 years ago

Hello, This is part of the DataAnnotationsExtensions project which is pulled in via a Nuget dependency so it shouldn't be a problem.

http://dataannotationsextensions.org/

Thanks, Warren

Mantus667 commented 11 years ago

The DataAnnotationsExtensions only knows a [Email] and [Min] Attribute. So different nameing. Also the ProfileModel file is missing the "using DataAnnotationsExtensions;".

warrenbuckley commented 11 years ago

Thanks I will fix in 1.0.5 later today :+1:

warrenbuckley commented 11 years ago

Hmmm it seems that using System.ComponentModel.DataAnnotations is in the ProfileModel.cs file. Where is the problem where it's missing please?