Questions tagged [repository-design]

95 questions
34
votes
6 answers

Subversion Repository Layout

Most subversion tools create a default repository layout with /trunk, /branches and /tags. The documentation also recommends not using separate repositories for each project, so that code can be more easily shared. Following that advice has led to…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
32
votes
3 answers

Mercurial with multiple projects

I have a couple of projects with different release cycles sitting in my SVN repository. Releases are created by using the classic tags structure in SVN. When there are bugs to fix in releases a branch is created from a tag, the bug is fixed and then…
Tobias Hertkorn
  • 2,742
  • 1
  • 21
  • 28
32
votes
2 answers

Best Practice for Git Repositories with multiple projects in traditional n-tier design

I'm making the switch from a centralized SCM system to GIT. OK, I'll admit which one, it is Visual SourceSafe. So in addition to getting over the learning curve of Git commands and workflow, the biggest issue I'm currently facing is how to migrate…
Terry
  • 2,148
  • 2
  • 32
  • 53
23
votes
3 answers

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: Querying - I've read responses that IQueryable should not be used when using repositories. However, it's obvious that…
Jason N. Gaylord
  • 7,910
  • 15
  • 56
  • 95
21
votes
1 answer

Is there a preferred path where I should initialise my Git repo on Mac OS X?

Where should I be building my repos? My tutorial repos went to root, but I thought since I would have a test of my production site, that I should build them in ~/sites/. It might seem trivial, but most introductions to Git I've seen don't really…
beta208
  • 617
  • 1
  • 6
  • 18
11
votes
2 answers

How do I track "dot" configuration files in my home directory with git?

I have a number of "dot" files in my home directory that I'd like to track with git - e.g. .pryrc, .zshrc, etc. I want to have a remote repository for these files so that a) there is an easy way to recover my configuration settings should I lose my…
Scro
  • 1,353
  • 2
  • 15
  • 26
9
votes
1 answer

Handling entity updates from a mapped object

I have my code first, SQL data models (using EF Core 1.1) that are used to model my schema/tables. However I also have domain objects which are partial or full mapped versions of these SQL data models, in essence they sort of have the same shape as…
9
votes
2 answers

How to synchronize Git Repositories across 2 Servers

I'm looking for a way to automatically synchronize Git repositories across (2) servers so they are interchangeable from a third point. Situation is as follows: We heavily use git for all our projects, and some of the Repositories grow quite fast in…
maxigs
  • 866
  • 6
  • 16
8
votes
1 answer

Symfony Doctrine entity manager and repository

I understand the benefit or repository pattern but I just can't understand in Symfony3 Doctrine there are Doctrine\ORM\EntityManager and \Doctrine\ORM\EntityRepository What are the difference between the two? Is repository should be injected to…
7
votes
1 answer

Is putting all project dependencies inside project's repository good practice?

I have a project that uses couple (for now ~6) dependencies (other libraries). Most of them are on MIT/simplyfied BSD licences so it should not be a problem to just copy them to my repo. Would it be good practice to put all those libraries to my…
RippeR
  • 1,472
  • 1
  • 12
  • 23
6
votes
2 answers

"Layering" git repository

I'm using git on a daily basis for a while now, and this time I've run into a problem which I could describe like this. I have a repository which holds entire website structure, and web root is in the root of the repository. Everything was fine…
mr.b
  • 4,932
  • 11
  • 38
  • 55
6
votes
1 answer

Is it a good idea to wrap my DbContext in a Unit of Work class?

I am trying to implement Unit of Work/Repository pattern in my MVC Web application. Since DbContext itself is a unit of work, I want to mix it with my own UOW for testing and decoupling purposes (decoupling business layer from EF). Is it then a good…
6
votes
6 answers

SVN Repository Structure

I am getting ready to set up an SVN repository, and was wondering if anyone had a good example for a repo structure. I am currently thinking: Development .. Applications .... App1 ...... trunk ...... branches ...... tags .. Database …
Nick Vaccaro
  • 5,428
  • 6
  • 38
  • 60
5
votes
3 answers

Dependency Inject for models

I'm sure someone has asked this before, but I'm struggling to find where. I'm using Ninject to remove dependencies from my controllers, along with a repository design pattern. As I understand it, one of the benefits of this approach is that I can…
5
votes
2 answers

DDD. Should I modify a entity inside a repository?

I have a question about implementing DDD and repository pattern. Should I modify a entity inside a repository? Let's say I have an Order and want to mark that order as finished. As I see this I have two choices. 1. var order…
1
2 3 4 5 6 7