Top "Repository-pattern" questions

The repository pattern provides a way to provide isolation between the data access layer of your application with the business layer.

Entity Framework using Repository Pattern, Unit of Work and Unity

Using a combination provided from this example and this implementation I am trying to create a solution that decouples the …

entity-framework inversion-of-control unity-container repository-pattern unit-of-work
Is it possible to remove child from collection and resolve issues on SaveChanges?

We are using Entity Framework Code First with Foreign Key relationships. We investigating on ways on handling removing objects from …

entity-framework entity-framework-4 persistence repository-pattern
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 …

c# entity-framework repository-pattern asp.net-identity unit-of-work
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 …

c# entity-framework unit-testing asp.net-mvc-4 repository-pattern
Unit of Work with Repository Pattern MVC 5 & EF 6

I put together a sample of how I am using the Unit of Work & Repository pattern based on my …

c# asp.net-mvc entity-framework repository-pattern unit-of-work
Transactions in the Repository Pattern

How do I encapsulate the saving of more than one entity in a transactional manner using the repository pattern? For …

design-patterns domain-driven-design repository-pattern architectural-patterns
Replacing a full ORM (JPA/Hibernate) by a lighter solution : Recommended patterns for load/save?

I'm developing a new Java web application and I'm exploring new ways (new for me!) to persist the data. I …

java sql repository-pattern mybatis jooq
Is Unit Of Work and Repository Patterns very useful for big projects?

I'm starting a new web project using ASP.NET Webforms + EF4. I'm trying to apply a repository pattern with a …

c# domain-driven-design repository-pattern unit-of-work
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 …

c# .net asp.net asp.net-mvc repository-pattern
How to get primary key value with Entity Framework Core

We are currently using the method below which depends upon IObjectContextAdapter in an abstract Repository. From what I'm reading, it …

entity-framework primary-key repository-pattern entity-framework-core