By default EF 4.2 codefirst sets the database column behind string properties to nvarchar(max).
Individually (per property) I can override this convention by specifying the [MaxLength(512)]
attribute.
Is there a way of globally applying a configuration that does this? It seems that the configuration api on modelbuilder only allows for per entity overrides and that the convention api on modelbuilder only allows removes. See this question.