DataAnnotation Atributes not applied in EF7

database-migration entity-framework-core

Question

When i migrate a database using k ef migration add bla bla. command the data annotation attributes are not reflected to the created database

e.g. iam using the [MaxLength(2)] attribute and am getting a column with data type nvarchar(MAX) created

Any help please

1
0
2/10/2015 10:39:31 AM

Accepted Answer

Data Annotations are not yet implemented in EF7. See issue #107.

0
2/13/2015 4:15:01 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow