I would like to avoid to specify manually maxlength attributes for all form input elements, and instead to use size information from the Data Model if possible:
e.g.
<%= Html.TextBox("Titel", ViewData.Model.Titel, (object)new { @maxlength = "10" })%>
would it be possible "translate" the DbType Attribute in the LINQ class ?
[Column(Storage="_Titel", DbType="NVarChar(10)")]
public string Titel