Skip to content

Add max lengths to database string columns if desired #867

@hhyyrylainen

Description

@hhyyrylainen

Looks like the string length attribute ([StringLength(255)]) can be used to restrict how long text can be put in a database column. With PostgreSQL this doesn't have a performance impact, just a data validness check. So if desired this can be done. Note that if done then the following warning should be re-enabled:

	<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EntityFramework_002EModelValidation_002EUnlimitedStringLength/@EntryIndexedValue">SUGGESTION</s:String>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backburner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions