Base solution for your next web application
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?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)