repository

DDD Business Model to Relational Model mapping

I'm trying to figure out where (in the various layers) the business entities should start and the object to table mapping end. Should business entities surface out of the repository layer or out of the service layer? I'm wondering cause initially i thought it should surface from repository layer, but let's see my concerns in this case. ...

Search a Batch of Files for a Line of Text

I have a Mercurial Repository for a code project and I want to search all of the files, in all directories and sub-directories, for a given string. What is the best method, or program to do so? I can conduct this search in Ubuntu Linux or a Windows environment. ...

Question on development process for artwork

We are currently using SVN, and we are storing much of the artwork (sounds, images) in our repository right along with everything else. Right now, the artists commit their work to the repository directly. When the artwork is approved, it is linked to the codebase. We want to keep the checkout process simple (so that artwork doesn't have...

BestPractices: Is it acceptable to use more than one repository in a MVC-Controller?

I have a many-to-many assocition between an Employee and a Team. Foreach entity I have a repository. Now I use ASP.NET MVC and I created a EmployeeController. I also created a View to edit an Employee. For this view I need a DropDownList with all Teams. The problem is that my EmployeeController only has got EmployeeRepository. So how ca...

Using SimpleDB (with SimpleSavant) with POCO / existing entities, not attributes on my classes

I'm trying to use Simple Savant within my application, to use SimpleDB I currently have (for example) public class Person { public Guid Id { get; set; } public string Name { get; set; } public string Description { get; set; } public DateTime DateOfBirth { get; set; } } To use this with Simple Savant, i'd have to put a...

How exactly does subversion store files in the repository?

I read the subversion book and it is clear to me that subversion does not store individual files but only deltas in order to minimize disk space. Subversion also does the same with binary files as well (this used to be a huge weakness of CVS). However I do not understand the exact mechanism. When I commit a file what happens? Subversi...

SVN move single directory into other repository (with history)

Related question: Moving repository trunk to another’s branch (with history) I know that one can dump a complete SVN repository with history and load it into a user-defined (sub)directory of the target repository using: // in source repo > svnadmin dump . > mydumpfilename // in destination repo (backslashes because I'm using Windows...

How to determine a repository?

I am trying to install ruby-mp3info. I have the following URL from which I can access the gem in my browser: http://bitbucket.org/moumar/ruby-mp3info/src/ I would like to specify this source while running gem install ruby-mp3info When I run gem install ruby-mp3info --source=http://bitbucket.org/moumar/ruby-mp3info/src, though, I get a me...

Dependency injection with multiple repositories

Hi! I have a wcf service and on the client i have: var service = new ServiceReference1.CACSServiceClient() The actual service code is: public CACSService() : this(new UserRepository(), new BusinessRepository()) { } public CACSService(IUserRepository Repository, IBusinessRepository businessRepository) { _IRepository = Reposito...

Download Maven2 dependency from non-standard layout repository

I need to download a file from a non-standard layout repository. The standard repository layout is groupId>/<artifactId>/<version>/<artifactId>-<version>.<packaging> however, I need to download the following file: http://hudson.myserver.com:10000/repo/ocp-services/schemas/trunk/201/archive/schemas/dist/schemas.jar where ocp-services ...

How do I correctly dispose a Linq to SQL DataContext in a Repository?

In a Rob Conery-style ASP.NET MVC application, you typically have a repository: public class CustomerRepository { DataContext dc = new DataContext(); public IQueryable<Customer> AllCustomers() { return db.Customers; } public Customer GetCustomer(int customerID) { return db.Customers.FirstOrDefau...

Repository-UoW, EF POCO, RIA Services, ASP MVC & Sliverlight cooperation possible?

I 'm beginning a new web project and was wondering if i could benefit from the "magical" things RIA service can offer, but in a way i was used to develop until now. This means i would like to architect the solution so that EF POCOs should be used, which are the basis for repositories (using IoC to resolve to concrete implementations), ...

(Yet another) What's the best conversion from an SVN repository to HG repository(ies)?

My company has a large Subversion (SVN) repository, and for various reasons, we are considering migrating to Mercurial (HG). I'm hoping to learn the "best practice" ideas for our situation. Our SVN repository is fairly monolithic, and looks something like this: trunk Python_Project_1 Python_Project_2 Python_Shared_Code Flex_Code ObjC...

How can I copy a git repository into a new svn repostory?

I have some code that I want to put into an svn repository for a client after doing some work on it in git, is there any way to initialize a svn repository using a git repository's history? I have initialized git repositories from svn repositories, and regularly commit between existing svn and git repositories, but I don't know how to...

Asp.net MVC with mysql

I am using ASP MVC to develop a new project. I am using the repository pattern for Data Access. I have worked on the same scenario before using SQL Server, but now I'm using MySQL. How do I interact with MySQL using the repository pattern? ...

svn create trunk and branches

Hi, I used Visual SVN Manager to create a repository, but I didn't create /trunk /branches and /tags at first. Now, I NEED to add these since the project has grown up ==> branching and merging is essential! What is the best way to do so ? ...

Unable to store the value of Unbound Column from Grid Properly (DevXpress 6.2) ?

Even though im using CustomUnboundColumnData Event, im unable to store the value of Radio selection properly. My Grid Has 3 Columns SelectColumn, Value1, Value2 where SelectColumn contains the RadioGroup.I would like to retain the value of the selected Radio, because the selection disappears if i click a button or move to another tab. ...

Repository Commit Msg Etiquette

Hey Hey, I've never had the chance to work with a team on a repo, so I'm wondering if there is a proper way to document your changes. For example, maybe add a tag(s) such as: bugfix, update, implement? Just curious on how professionals describe their commits. Hopefully it'll aid me in keeping the project organized... ...

How to rebase one Git repository onto another one?

Hi there! I had one Git repository (A) which contains the development of a project until a certain point. Then I lost the USB stick this repo A was on. Luckily I had a backup of the latest commit, so I could create a new repository (B) later where I imported the latest project's state and continue development. Now I recovered that lost ...

RepositoryItemCheckEdit to get value

Hi I have a GridView that has a column with RepositoryItemCheckEdit as ColumnEdit. I want to go get the value "True" and "False" once user click on the check box. what event should i use and how to i get the value. please if anyone can help is urgent. ...