I have columns in my database that EF put in for me, that are classname followed by _Id. However much of the documentation recommends that the naming convention for foreign keys is the classname followed by Id without the underscore.
Like this post I dont want to have both conventions in my database.
Code First creates a foreign key in the database using the pattern [Name of navigation property]_[Primary Key of related class]
Why the 2 apparently inconsistent conventions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…