Required Model Validation Generating the Models using Entity Framework Database First Approach

孤街醉人 提交于 2020-01-05 09:35:20

问题


In continuation with the question asked here, even with EF 6, I am having issues generating the [Required] Data Annotation for certain fields for a model autogenerated from Database Table. Am I missing something or is it still not supported? The DB fields that I am looking at are "NOT NULL". Any help will be appreciated! I have too many tables and fields to look at and automating this process via Entity framework will be nice to have!

来源:https://stackoverflow.com/questions/29827993/required-model-validation-generating-the-models-using-entity-framework-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!