Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to Create Custom Repository #1008


User avatar
0
andmattia created

In according to custom repository <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#DocCustomRepositoryMethods">http://www.aspnetboilerplate.com/Pages/ ... oryMethods</a>.

Where is the right place to put your custom repository?


3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    To your EntityFramework project. Because custom repositories has EF specific code.

  • User Avatar
    0
    raffee created

    Hi, Following up with this question: how to use the custom repository in my domain services? Do you think it's OK to have cyclical references between .Core and .EntityFramework projects?

  • User Avatar
    0
    hikalkan created
    Support Team

    Define custom reposity interface in the Core project and implement it in the EF project. Then you can inject interface without referencing to the EF project.