tagged [repository]

Repository Pattern Step by Step Explanation

Repository Pattern Step by Step Explanation Can someone please explain to me the Repository Pattern in .NET, step by step giving a very simple example or demo. I know this is a very common question bu...

Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)?

Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)? Can one transfer repositories from GitLab to GitHub if the need be. If so, how exactly can I go about doing the ...

8 Mar at 06:47

DDD - How to implement high-performing repositories for searching

DDD - How to implement high-performing repositories for searching I have a question regarding DDD and the repository pattern. Say I have a Customer repository for the Customer aggregate root. The Get ...

ASP.NET Identity with Repository and Unit of Work

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 a lot of tutorials and arti...

Persistance ID's and Domain Model Entities

Persistance ID's and Domain Model Entities I was curious on what peoples thoughts are on keeping the Id of a DAL entity as a property of the Domain Entity, at the absolute most a read-only property. M...

Using View-Models with Repository pattern

Using View-Models with Repository pattern I'm using [Domain driven N-layered application architecture](http://blogs.msdn.com/b/marblogging/archive/2011/05/23/domain-drive-design-n-layered-net-4-0-arch...

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

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

Using Simple Injector with Unit Of Work & Repository Pattern in Windows Form

Using Simple Injector with Unit Of Work & Repository Pattern in Windows Form I'm trying to implement IoC in my windows form application. My choice fell on Simple Injector, because it's fast and lightw...

Git: add vs push vs commit

Git: add vs push vs commit What is the difference between git `add`, `push` and `commit`? Just a little confused coming from SVN, where "update" will 'add' stuff, and commit does a "push" and will 'ad...

23 Apr at 18:0

Should I abstract the validation framework from Domain layer?

Should I abstract the validation framework from Domain layer? I am using FluentValidation to validate my service operations. My code looks like: UserValidator i

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

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

Entity Framework relationships between different DbContext and different schemas

Entity Framework relationships between different DbContext and different schemas So, I have two main objects, Member and Guild. One Member can own a Guild and one Guild can have multiple Members. I ha...

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

How do you merge two Git repositories?

How do you merge two Git repositories? Consider the following scenario: I have developed a small experimental project A in its own Git repo. It has now matured, and I'd like A to be part of larger pro...

17 Feb at 20:38

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

How to connect local folder to Git repository and start making changes on branches?

How to connect local folder to Git repository and start making changes on branches? I'm new to source control; in the past, I've manually backed up copies of files and made changes on clones then tran...

Unit of Work + Repository Pattern: The Fall of the Business Transaction Concept

Unit of Work + Repository Pattern: The Fall of the Business Transaction Concept Combining `Unit of Work` and `Repository Pattern` is something used fairly widely nowadays. As Martin Fowler [says](http...

Why use AsQueryable() instead of List()?

Why use AsQueryable() instead of List()? I'm getting into using the Repository Pattern for data access with the [Entity Framework](http://en.wikipedia.org/wiki/ADO.NET_Entity_Framework) and [LINQ](htt...

15 Jun at 02:1

Service Layers and Repositories

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. I've got into a bad habit of letting the controllers do quite...

How can I implement a transaction for my repositories with Entity Framework?

How can I implement a transaction for my repositories with Entity Framework? I am trying to utilize the repository design pattern in my application for 2 reasons 1. I like to de-couple my application ...

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

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

Change SVN repository URL

Change SVN repository URL My current SVN structure: But our project (hence th

5 Dec at 16:6