According to onion architecture I should have my domain models (User, Student, Teacher) in my "Core" or "Domain" layer and my DbContext in my "Infrastructure" layer.
I use Entity Framework 5 in my MVC4 application and I'm using ADO.NET database-first approach (the database for the application already exists). Since ADO.NET generates the entities for me (.edmx file), how do I separate the domain from the database layer?
At the moment I have my entities model in the Core, but doesn't that break the architecture since the Core shouldn't know about how the data is accessed?