To be able generate validators from NHib metadata, if no validators defined explicitly

Description

Validators can fine-tune NHib metadata (Generate SQL constraints) when ApplyToDDL option is enabled.
Let it do backward task - if no validation defined explicitly, extract NHib mappings info and generate validator based on this info with AutoGenerateFromMapping option.

Usage scenario:
Entities mapped to DB with some NHib convention.
If length of some string field must be changed - specific validator declared and ApplyToDDL option used.
For properties where length is defined by convention - no specific validators declared, but validation attributes are created in run-time when AutoGenerateFromMapping option is enabled. .

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created December 31, 2017 at 2:08 AM
Updated January 10, 2018 at 4:15 PM
Resolved January 10, 2018 at 4:15 PM
Who's Looking?