Removing all conventions.Will this resolve my problem
Using codefirst with an existing database can be quite a challenge as things dont match up the conventions.Still dont know what all conventions are but there you go..
Now if I were to remove all conventions do I still need to 开发者_运维知识库do the mapping of fks and many to many etc...
Are there any problems in doing so.
any suggestions?
If you remove all conventions you will have to map almost everything with fluent API. Any automatic detection like foreign keys, primary keys etc. is done by conventions. Also translation of data annotation attributes into mapping is done by conventions.
精彩评论