tagged [repository]
Best Repository Pattern for ASP.NET MVC
Best Repository Pattern for ASP.NET MVC I recently learned ASP.NET MVC (I love it). I'm working with a company that uses dependency injection to load a Repository instance in each request, and I'm fam...
- Modified
- 7 Jun at 03:21
Repository pattern - Why exactly do we need Interfaces?
Repository pattern - Why exactly do we need Interfaces? I have read from internet I got this points which says Interfaces is used for this - - But I'm not able to understand how interface will be usef...
- Modified
- 17 May at 05:25
Interaction between unit of work and repository patterns
Interaction between unit of work and repository patterns After reading thorugh plenty of articles I am still unsure about the responsibilities of Unit of Work pattern when interacting with repositorie...
- Modified
- 20 Jul at 21:4
Repository Pattern and multiple related core entities or business objects - one repository or more?
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 implementa...
- Modified
- 24 Feb at 15:59
Change SVN repository URL
Change SVN repository URL My current SVN structure: But our project (hence th
- Modified
- 5 Dec at 16:6
Generic repository - IRepository<T> or IRepository
Generic repository - IRepository or IRepository I have seen two different approaches for creating generic repositories. What are differences between those two approaches (pros and cons) ? Please direg...
- Modified
- 5 Dec at 21:9
A Repository Factory Class
A Repository Factory Class ``` public enum RepositoryType { ClinicRepository, MedicationRepository, PatientRepository, TreatmentRepository } public class ObjectFactory { public static IRepos...
- Modified
- 12 Jan at 14:18
How to keep Stored Procedures and other scripts in SVN/Other repository?
How to keep Stored Procedures and other scripts in SVN/Other repository? Can anyone provide some real examples as to how best to keep script files for views, stored procedures and functions in a SVN (...
- Modified
- 10 Sep at 05:13
Generating identities for entities in DDD
Generating identities for entities in DDD ### Edit To further clarify my initial problem, I rewrote the question with more 'DDD'-termini, common patterns and discussion arguments. The orginal version ...
- Modified
- 9 Sep at 14:40
DTO vs. Domain Model, project organization
DTO vs. Domain Model, project organization I have a project with a repository, a service layer, using EF6 and code-first POCOs. In the CustomerRepository, I am doing several projection queries that re...
- Modified
- 6 Feb at 17:15
Error while validating the service descriptor 'ServiceType: INewsRepository Lifetime: Singleton ImplementationType: NewsRepository':
Error while validating the service descriptor 'ServiceType: INewsRepository Lifetime: Singleton ImplementationType: NewsRepository': I try get data from my database with repository Pattern i have 3 pr...
- Modified
- 13 Dec at 21:9
Using a Generic Repository pattern with fluent nHibernate
Using a Generic Repository pattern with fluent nHibernate I'm currently developing a medium sized application, which will access 2 or more SQL databases, on different sites etc... I am considering usi...
- Modified
- 6 Apr at 21:7
Repository Pattern without an ORM
Repository Pattern without an ORM I am using repository pattern in a .NET C# application that does not use an ORM. However the issue I am having is how to fill One-to-many List properties of an entity...
- Modified
- 16 Feb at 17:57
Is caching a repository, domain or application concern?
Is caching a repository, domain or application concern? I am trying to figure out which layer should be responsible for the caching (insert/remove) work in a Domain Driven Design project. The goal is ...
- Modified
- 10 Aug at 10:25
TDD - Want to test my Service Layer with a fake Repository, but how?
TDD - Want to test my Service Layer with a fake Repository, but how? I've designed an application that uses the repository pattern, and then a separate service layer such as this: As you can se
- Modified
- 1 Jun at 17:46
where to put the validate logic? In Service or Repository?
where to put the validate logic? In Service or Repository? I have some logic like this, before save the stock into the db, i will check whether there is stock has the same stock code in the database. ...
- Modified
- 2 May at 10:56
Where does validation check go in repository pattern?
Where does validation check go in repository pattern? Lets say I have an entity called User which has many Posts. My service looks like this for the deletion of a post: Where does my validation code g...
- Modified
- 4 Jan at 21:38
Having a repository dependent on another repository
Having a repository dependent on another repository I've recently been spending time reading up on SOLID principles and decided to seeing how the code base I work with compares. In some of our code th...
- Modified
- 8 May at 09:29
Repository pattern connection string
Repository pattern connection string I am building a generic Repository for a WinForms kinda small app like this: I know that many recommend against usin
- Modified
- 22 Aug at 14:29
ServiceStack + ORMLite + Repository Pattern
ServiceStack + ORMLite + Repository Pattern I'm trying to implement the Repository pattern using ORMLite. I initially started off with: But having this under every method in my Repository seemed a bit...
- Modified
- 23 Jan at 18:10
C# How to convert an Expression<Func<SomeType>> to an Expression<Func<OtherType>>
C# How to convert an Expression> to an Expression> I have used C# expressions before based on lamdas, but I have no experience composing them by hand. Given an `Expression> originalPredicate`, I want ...
- Modified
- 19 May at 13:48
Where to convert business model to view model?
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 unit of work class and the repository defined i...
- Modified
- 26 Sep at 06:4
Using Dapper QueryAsync to return a single object
Using Dapper QueryAsync to return a single object Unfortunately, our DB is dated back to the 90s. Its legacy is so strong that we are still using SP in order to do most of the CRUD operations. However...
- Modified
- 10 Jul at 09:48
Method cannot be translated into a store expression
Method cannot be translated into a store expression I saw this code work with LINQ to SQL but when I use Entity Framework, it throws this error: > LINQ to Entities does not recognize the method 'Syste...
- Modified
- 19 Jun at 19:32
git repo says it's up-to-date after pull but files are not updated
git repo says it's up-to-date after pull but files are not updated I have 3 repos. A bare repo which I use as a master repo, a dev repo in which I make and test changes, and prod repo from which scrip...
- Modified
- 18 Jan at 03:15