KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible in EF4 to change conventions for a whole DbContext rather than on a per entity basis? Currently when I run EF4 queries I'm getting an error on foreign key relationships Invalid column name 'Account_Id'. The table being queried (User) has a column named AccountId which is a foreign key to the related table (Account), if I change the column to Account_Id, it solves the problem. However, the issue is that I don't want to do this on every table. I've set custom conventions no problem using NHibernate, so hopefully its as simple in EF4.
Tags (comma-separated)
Save Edits
Cancel