tagged [repository]

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...

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...

10 Apr at 11:32

Repository pattern: Implementation and lazy loading of model relationships

Repository pattern: Implementation and lazy loading of model relationships I have an application which deals with products and product categories. For each of these I have models defined using POCO. `...

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...

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...

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...

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 ...

Repository Pattern with Entity Framework 4.1 and Parent/Child Relationships

Repository Pattern with Entity Framework 4.1 and Parent/Child Relationships I still have some confusion with the Repository Pattern. The primary reason why I want to use this pattern is to avoid calli...

Saving domain entities changes

Saving domain entities changes here's real example that will lead to my question: I have an AddCommentToArticleCommand, which has an ArticleId, comment text and email address. This command: - - - Shou...

can you host a private repository for your organization to use with npm?

can you host a private repository for your organization to use with npm? Npm sounds like a great platform to use within an organization, curious if a private repo is possible, like with Nexus/Maven. N...

27 Sep at 21:1

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...

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...

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. - ...

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...

Should entity objects be exposed by the repository?

Should entity objects be exposed by the repository? I have an repository which implements interface `IRepository`. The repository performs queries on the Entity Framework (on behalf of) the applicatio...

Where can I find UML diagrams (instead of reinventing the wheel)?

Where can I find UML diagrams (instead of reinventing the wheel)? I am currently trying to draw a set of UML diagrams to represent products, offers, orders, deliveries and payments. These diagrams hav...

Using Repo with Msysgit

Using Repo with Msysgit When following the [Android Open Source Project instructions on installing repo](http://source.android.com/download/using-repo) for use with `Git`, after running the `repo init...

6 May at 10:26

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...

17 May at 05:25

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...

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...

MVC ViewModels and Entity Framework queries

MVC ViewModels and Entity Framework queries I am new to both MVC and Entity Framework and I have a question about the right/preferred way to do this. I have sort of been following the Nerd Dinner MVC ...

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...

how to switch from svn to bzr for working locally

how to switch from svn to bzr for working locally i have imported(checkout) some read-only repository on the Internet now i want to work on this read-only (also i have better experience with bzr than ...

27 Aug at 14:6

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...

AutoMapper.Map ignore all Null value properties from source object

AutoMapper.Map ignore all Null value properties from source object I'm trying to map 2 objects of the same type. What I want to do is AutoMapper to igonore all the properties, that have `Null` value i...

20 Sep at 13:49