For questions about the implementation of the repository design pattern.
6
votes
2answers
85 views
4
votes
1answer
79 views
My implementation of the repository pattern
I'm using this pattern since a few months and I was wondering if I can make it any better.
The one thing I am not satisfied about is the dispose method. In every repository I have to add a dispose ...
1
vote
1answer
48 views
Refactoring fat ASP.NET MVC Controller
I have just began porting an old project to ASP.NET MVC . In the end, I'll have a lot of controller methods like the one below, called by AJAX requests done by JQGrid objects in the pages:
AJAX ...
3
votes
1answer
41 views
Is this Repository/UOW design workable?
I'm using VS 2013/EF 6/WEB API 2.
This application of mine which is working on will eventually grow to be big project and I'm in the very beginning stage and need your expertise to make it simple as ...
10
votes
2answers
88 views
YARPI: Yet Another Repository Pattern Implementation
Following-up on this post, I wanted to be able to put a copy of that Excel workbook on a USB key and take it home to keep working on the code a bit (there's more than just one or two tables to ...
1
vote
0answers
22 views
Repository and Unit of Work asp.net/mvc/tutorials
I'm so confused after reading so many blogs I'm still not sure which way to go and I need help with Repository/UOF pattern using EF 6.
As I was following the example here asp.net/mvc/tutorials and ...
1
vote
0answers
22 views
Should I use an abstract repository, or abstract gateway when I have multiple implementations of a single interface? [closed]
I have a single interface called ITask, which several other interfaces inherit from. One being IGTask and another being ...
2
votes
1answer
118 views
Repository pattern best practices using EF 6
Update:
Answer to @Ben:-----
Interface: I agreed with you and I'm not sure why did I put that and I usually use Get or GetAll ...
4
votes
1answer
105 views
Unit of Work / Repository nHibernate
I have a Unit of Work / Repository pattern in place to abstract away some nHibernate. Most examples I've seen though use the pattern a little differently.
In ...
3
votes
1answer
234 views
Laravel - Repository and Entity patterns
I've spent quite a bit of time studying the repository and entity patterns and this is what I came up with. I would appreciate it if you could post suggestions and critique.
...
3
votes
1answer
109 views
Fluent Repository/QueryBuilder
I've been toying around making my repositories a bit more fluent for a while. I was ending up with crazy long method names when I had to query on multiple conditions. So I've been working on a way to ...
1
vote
0answers
47 views
Is this model a good management for the pattern UOW / Repository with NHibernate?
Searching on Stack Overflow and Google, I find many and many different implementation but none of that really convinced me, each had some small defect that prevented me from using it. So I tried to ...
3
votes
2answers
383 views
Implementing repository pattern and DAL with stored procedures
Using .net 3.5, implementation of the repository pattern along with enterprise library 5 and stored procedures. Did not use EF, stored procedures already available and VS2008 is limited to EF 3/4.
...
4
votes
1answer
99 views
Saving a sales order - too many repositories?
I am wondering if I have overdone it with repositories in the following code, which is to save a sales order.
I understand that the purpose of a repository is to decouple the domain layer from the ...
1
vote
0answers
27 views
Handling repository classes dependencies on other repo classes
As my application grows I'm finding the repository classes are utilizing a pattern that could be thought of as a repo locator. It's testable by overloading the locators config, but having a single ...
0
votes
1answer
475 views
Repository wrapper
I'm new to C# (mostly doing C++ development) and I would like some high skilled C# coder or enthusiast to comment the following implementation of the repository proxy.
If there is something that you ...