Entity framework 6.0 get max length of field

Hello,
I am try to know what is the max lenght in DB for some nvarchar filed, befor use them.
Is theare are easy way to get this value programmly ?