tagged [repository]
Async/Await in multi-layer C# applications
Async/Await in multi-layer C# applications I have a multi-layered C# MVC4 web application in a high-traffic scenario that uses dependency injection for various repositories. This is very useful becaus...
- Modified
- 22 May at 15:8
ASP.NET Identity with Repository and Unit of Work
ASP.NET Identity with Repository and Unit of Work I'm learning Repository and Unit of Work patterns in ASP.NET MVC 5 application with Entity Framework 6. I had already read a lot of tutorials and arti...
- Modified
- 22 Apr at 19:27
Repository pattern implementation with data model in a tree structure
Repository pattern implementation with data model in a tree structure I have two data collections in two different models that implement a repository interface. One of them is in a flat list which fit...
- Modified
- 19 Dec at 18:59
How to use the repository pattern correctly?
How to use the repository pattern correctly? I am wondering how should I be grouping my repositories? Like from the examples I seen on the asp.net mvc and in my books they basically use one repository...
- Modified
- 30 Sep at 00:22
Service Layers and Repositories
Service Layers and Repositories I've been using MVC frameworks for a short while now and I really like how the concerns are separated out. I've got into a bad habit of letting the controllers do quite...
- Modified
- 18 Aug at 21:15
Should write complex query in Repository or Service layer?
Should write complex query in Repository or Service layer? I are planning migrate our data access layer to using repository pattern and unit of work. I do know repository will help me to change persis...
- Modified
- 13 May at 06:32
Best way to implement Repository Pattern?
Best way to implement Repository Pattern? I've been exploring BDD/DDD and as a consequence trying to come up with a proper implementation of the Repository pattern. So far, it's been hard to find a co...
- Modified
- 4 Oct at 02:52
How to fake DbContext.Entry method in Entity Framework with repository pattern
How to fake DbContext.Entry method in Entity Framework with repository pattern Because I want to unit test my code I have implemented the repository pattern in my MVC4 application. I managed to make a...
- Modified
- 23 May at 12:2
How do I correctly use Unity to pass a ConnectionString to my repository classes?
How do I correctly use Unity to pass a ConnectionString to my repository classes? I've literally just started using the Unity Application Blocks Dependency Injection library from Microsoft, and I've c...
- Modified
- 9 Aug at 19:20
Invalid Argument in Method when pulling from repository
Invalid Argument in Method when pulling from repository I am trying to learn how this Repository works by disecting it. I am really lost so was hoping the community would help me out a bit. Please kee...
- Modified
- 17 Dec at 23:14
How does a service layer fit into my repository implementation?
How does a service layer fit into my repository implementation? I have created a POCO model class and a repository class which handles persistence. Since the POCO cannot access the repository, there a...
- Modified
- 26 May at 15:53
Unit test an Entity Framework generic repository using Moq
Unit test an Entity Framework generic repository using Moq I am not able to get a passing test because the class `this.dbSet = context.Set();` is always `null`. As you can see in the code below, I hav...
- Modified
- 8 May at 02:1
How to implement Generic Repository Design Pattern with Dapper?
How to implement Generic Repository Design Pattern with Dapper? I am using Dapper for a MicroORM to retrieve and Save Data to SQL Server 2014. I have got DTO classes in a DTO Proj that represent the D...
- Modified
- 29 Jul at 07:15
Entity Framework Generic Repository Error
Entity Framework Generic Repository Error I am trying to create a very generic generics repository for my Entity Framework repository that has the basic CRUD statements and uses an Interface. I have h...
- Modified
- 30 Mar at 02:57
Transition from Entityspaces(Tiraggo) into Servicestack Ormlite
Transition from Entityspaces(Tiraggo) into Servicestack Ormlite at this moment we are migrating from Entityspaces(Tiraggo) into Servicestack Ormlite. One point is the way to open and close the DBConne...
- Modified
- 23 Mar at 20:26
Using View-Models with Repository pattern
Using View-Models with Repository pattern I'm using [Domain driven N-layered application architecture](http://blogs.msdn.com/b/marblogging/archive/2011/05/23/domain-drive-design-n-layered-net-4-0-arch...
- Modified
- 11 May at 07:45
How to unit test a repository pattern that uses Entity Framework?
How to unit test a repository pattern that uses Entity Framework? I'm currently trying to unit test a repository I made through Entity Framework: What I want to happen is that test the repository with...
- Modified
- 3 Apr at 15:48
DDD - How to implement high-performing repositories for searching
DDD - How to implement high-performing repositories for searching I have a question regarding DDD and the repository pattern. Say I have a Customer repository for the Customer aggregate root. The Get ...
- Modified
- 4 Apr at 12:52
Trying to simplify our repository pattern
Trying to simplify our repository pattern Currently we have implemented a repository pattern at work. All our repositories sit behind their own interfaces and are mapped via Ninject. Our project is qu...
- Modified
- 18 Mar at 18:17
Onion Architecture, Unit of Work and a generic Repository pattern
Onion Architecture, Unit of Work and a generic Repository pattern This is the first time I am implementing a more domain-driven design approach. I have decided to try the [Onion Architecture](http://j...
- Modified
- 13 Apr at 12:40
Using Simple Injector with Unit Of Work & Repository Pattern in Windows Form
Using Simple Injector with Unit Of Work & Repository Pattern in Windows Form I'm trying to implement IoC in my windows form application. My choice fell on Simple Injector, because it's fast and lightw...
- Modified
- 22 Apr at 15:58
Persistance ID's and Domain Model Entities
Persistance ID's and Domain Model Entities I was curious on what peoples thoughts are on keeping the Id of a DAL entity as a property of the Domain Entity, at the absolute most a read-only property. M...
- Modified
- 2 May at 01:33
Well designed query commands and/or specifications
Well designed query commands and/or specifications I've been searching for quite some time for a good solution to the problems presented by the typical Repository pattern (growing list of methods for ...
- Modified
- 28 Jan at 23:58
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning? I tried to install a package, using but received the warning Why doesn't R think that the package is available? S...
- Modified
- 3 Mar at 13:43
Repository and Data Mapper pattern
Repository and Data Mapper pattern After a lots of read about Repository and Data Mapper I decided to implement those patterns in a test project. Since I'm new to these I'd like to get your views abou...
- Modified
- 12 Jan at 23:55