I want to map each field the user enters data into correlates with a database field that can easily set by reading database table definition and set it manually in razor view by setting maximum or in my view model but I need to make it dynamic if Database administrator change the maximum character limit through SQL server it will automatically update the maximum limit of character in text field. I am trying to read it from Entity framework and set it in razor view. Is this possible to make it dynamic in any way.

And how can I read max length field from razor view.

Related posts

Recent Viewed