Sunday, April 15, 2012

.NET Data Annotations...Integer?


Problem
As I was developing my C# classes I ran into a problem, I couldn't find Integer in the datatype for data annotations.  Hey Microsoft...why not?

Solution
I came across a a library that provided more than I needed, but hey sometimes that 's a great thing and in this case it was.  Data Annotation Extensions to the rescue!  The library can be found here.  Turns out to solve my problem I now can use Integer using this library!

Conclusion
Hopefully finding this gem will help others as it did me.  I am very happy with the library.  If you have a better suggestion or easier way to do other types of data annotations in C#, please comment.

No comments:

Post a Comment