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)
-
0
To your EntityFramework project. Because custom repositories has EF specific code.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
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 supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
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 supportedCopy & paste or drag & drop images (max 30 MB per image)