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:
Frédéric Delaporte
changed the Status
January 10, 2018 at 4:15 PM
Open
Resolved
Frédéric Delaporte
updated the Fix versions
January 10, 2018 at 4:15 PM
None
5.1.0 GA
Frédéric Delaporte
updated the Resolution
January 10, 2018 at 4:15 PM
None
Fixed
Frédéric Delaporte
updated the Affects versions
January 2, 2018 at 4:27 PM
5.1.0 GA
None
Frédéric Delaporte
updated the Affects versions
January 2, 2018 at 4:27 PM
None
5.0.0 GA
Alexander Kot
created the Work item
December 31, 2017 at 2:08 AM
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?

Flag notifications