tagged [repository]
Problem using OrderBy with the entity framework and ObjectContext.CreateQuery(T)
Problem using OrderBy with the entity framework and ObjectContext.CreateQuery(T) I'm having troubles using this method: I'm not sure
- Modified
- 7 Nov at 20:24
How can I log all entities change, during .SaveChanges() using EF code first?
How can I log all entities change, during .SaveChanges() using EF code first? I'm using . I'm using a base Repository for all my repositories and an `IUnitofWork` that inject to the repositories, too:...
- Modified
- 13 Mar at 03:51
How to implement Repository Pattern with interface, base and concrete
How to implement Repository Pattern with interface, base and concrete I have almost completed implementing my repository pattern by having a `IRepository` interface, a `NewsRepository` class and a `Ne...
- Modified
- 4 Sep at 18:4
Implement a generic repository pattern using old ado.net
Implement a generic repository pattern using old ado.net I am trying to implement the repository pattern using ado.net because of platform limitation. ``` public interface IGenericRepository : IDispos...
- Modified
- 23 May at 21:52
How to upload a project to GitHub
How to upload a project to GitHub After checking [How can I upload my project's Git repository to GitHub?](https://stackoverflow.com/q/6674752/5740428), I still have no idea how to get a project uploa...
- Modified
- 29 Dec at 00:55
DDD: Entity identity before being persisted
DDD: Entity identity before being persisted In Domain Driven Design, one of the defining characteristic of an Entity is that it has an identity. I am not able to provide a unique identity to Entities ...
- Modified
- 21 Jan at 06:27
An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key
An object with the same key already exists in the ObjectStateManager. The ObjectStateManager cannot track multiple objects with the same key Using EF5 with a generic Repository Pattern and ninject for...
- Modified
- 24 Feb at 23:10
Repository Methods vs. Extending IQueryable
Repository Methods vs. Extending IQueryable I have repositories (e.g. ContactRepository, UserRepository and so forth) which encapsulate data access to the domain model. When I was looking at , e.g. - ...
- Modified
- 15 Feb at 01:27
How to inject or wire up ormlite into ServiceStack repositories?
How to inject or wire up ormlite into ServiceStack repositories? I want to access the database from a repository rather than the service class (for increased seperation - not sure if this is overkill ...
- Modified
- 1 Jul at 10:4
Where should I put a unique check in DDD?
Where should I put a unique check in DDD? I'm working on my first DDD project, and I think I understand the basic roles of entities, data access objects, and their relationship. I have a basic validat...
- Modified
- 15 Jun at 20:51
How to implement generic GetById() where Id can be of various types
How to implement generic GetById() where Id can be of various types I am trying to implement a generic `GetById(T id)` method which will cater for types which may have differing ID types. In my exampl...
- Modified
- 3 Mar at 18:6
Repository / IQueryable / Query Object
Repository / IQueryable / Query Object I am building a repository and I've seen in many places 2 reasons not to expose IQueryable outside the repository. 1) The first is because different LINQ provide...
- Modified
- 16 Aug at 00:6
Entity Framework + Repository + Unit of Work
Entity Framework + Repository + Unit of Work I'm thinking about starting a new project using EF 4 and going through some articles, I found some articles about EF with repository pattern and unit of wo...
- Modified
- 4 Jan at 16:21
Building a Repository using ServiceStack.ORMLite
Building a Repository using ServiceStack.ORMLite I'm using servicestack and i'm planning to use ormlite for the data access layer. I've these tables (SQL Server 2005) ``` Table ITEM ID PK ... Table SU...
- Modified
- 4 Oct at 17:54
Repository Pattern with MongoDB: Where to initialize the Database
Repository Pattern with MongoDB: Where to initialize the Database I just started to play around with MongoDB (C#) and tried to port a repository over from entity framework. I'm using the official C# d...
- Modified
- 10 Apr at 11:32
Is Unit Of Work and Repository Patterns very useful for big projects?
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 unit of work pattern ...
- Modified
- 11 Oct at 07:47
Why does Redis C# client method .getById() return null?
Why does Redis C# client method .getById() return null? I'm building a simple blog application in Asp.Net MVC and I want to use a Redis database. I have created a repository for my Users class that co...
- Modified
- 30 Aug at 19:53
Why use Repository Pattern or please explain it to me?
Why use Repository Pattern or please explain it to me? I am learning repository pattern and was reading [Repository Pattern with Entity Framework 4.1 and Code First](http://www.codeproject.com/Tips/30...
- Modified
- 19 Dec at 17:47
Pattern for retrieving complex object graphs with Repository Pattern with Entity Framework
Pattern for retrieving complex object graphs with Repository Pattern with Entity Framework We have an ASP.NET MVC site that uses Entity Framework abstractions with Repository and UnitOfWork patterns. ...
- Modified
- 14 Nov at 11:44
Implementing retry logic for deadlock exceptions
Implementing retry logic for deadlock exceptions I've implemented a generic repository and was wondering if there is a smart way to implement a retry logic in case of a deadlock exception? The approac...
- Modified
- 5 May at 14:44
Repository Pattern and unit testing from memory
Repository Pattern and unit testing from memory I have seen some implementations of the Repository Pattern, very simple and intuitive, linked form other answers here in stackoverflow [http://www.codep...
- Modified
- 25 Jul at 07:4
Unit testing, mocking - simple case: Service - Repository
Unit testing, mocking - simple case: Service - Repository Consider a following chunk of service: ``` public class ProductService : IProductService { private IProductRepository _productRepository; //...
- Modified
- 22 May at 09:54
C# Service Layer Design Pattern
C# Service Layer Design Pattern We are looking into creating a new project and are wanting to explore using the Repository and Service layer patterns, the aim to is create loosely coupled code which i...
- Modified
- 21 Feb at 11:55
Why is a generic repository considered an anti-pattern?
Why is a generic repository considered an anti-pattern? it seems to me that a lot of specialised repository classes share similar characteristics, and it would make sense to have these classes impleme...
- Modified
- 2 May at 19:40
Generic Repository for SQLite-Net in Xamarin Project
Generic Repository for SQLite-Net in Xamarin Project I am wondering if there is a way to write a generic repository for my Xamarin project versus writing a different Repository for each entity in my o...
- Modified
- 1 Nov at 03:15