Yes oviously there is, you can follow repository pattern for this.
The best thing is to put the .Edmx file in the Infrastructure folder rather than in the core folder.
Please follow the following link for Onion Architecture
Onion Architectur[
^]
This is very nice and layered architecture to follow.
hope this helps
Thanks
:)