Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out field maximum length in Entity Framework in .NET 4?

According to this question, there's no built-in way in EF v1 to figure out the length of a field. Is there a built-in way to do so in the Entity Framework that ships with .NET 4, if so - how?

like image 213
Asaf R Avatar asked Mar 30 '10 13:03

Asaf R


1 Answers

There is no new way to access the length of a property in EF 4.0. You still have to walk over the metadata - as shown in the accepted answer on the question you reference.

like image 126
Alex James Avatar answered Sep 26 '22 22:09

Alex James