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.

How to use Repository and Unit of Work Patterns with ADO.NET?

I am building ASP.NET MVC 5 application. I read about Repository and Unit of Work (UoW) Patterns here. These examples …

asp.net-mvc design-patterns ado.net repository-pattern unit-of-work
Is UnitOfWork and GenericRepository Pattern redundant In EF 4.1 code first?

Wondering if I need to use the Genericrepository pattern and UnitOfWork to mock the repository.I am using MOQ.Is …

unit-testing mocking repository-pattern entity-framework-4.1 unit-of-work
Where to convert business model to view model?

In my ASP.NET MVC application, I am using unit of work and repository patterns for data access. Using the …

c# asp.net-mvc entity-framework repository-pattern unit-of-work
Repository Pattern and multiple related core entities or business objects - one repository or more?

I am looking at implementing the repository pattern (since what I came up with was 90% an implementation of it anyway), …

c# design-patterns repository-pattern
Repository Pattern Best Practice

So I'm implementing the repository pattern in an application and came across two "issues" in my understanding of the pattern: …

asp.net repository-pattern repository repository-design
Is it ok for entities to access repositories?

I've just started working with DDD, so maybe this is a silly question... Is it ok for an entity to …

domain-driven-design repository-pattern ddd-repositories
DDD: Entity identity before being persisted

In Domain Driven Design, one of the defining characteristic of an Entity is that it has an identity. Problem: I …

c# domain-driven-design repository-pattern domain-model aggregateroot
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. …

c# model-view-controller repository-pattern castle-monorail
Casting Eloquent\Collection (Laravel) to stdClass array using Repository pattern

I'm trying to implement the Repository pattern in a Laravel 5 app by following this article. In it, the repository implementation …

laravel casting eloquent repository-pattern stdclass
ServiceStack + ORMLite + Repository Pattern

I'm trying to implement the Repository pattern using ORMLite. I initially started off with: public List<Todo> GetByIds(…

design-patterns repository-pattern servicestack ormlite-servicestack