repository

Databind Parent/Child relation with Mysql

What is the best way to databind parent/child relations? Lets say I have two simple objects: Parent with the following properties, ParentId, Name and Childs and Child with the following properties, ChildId, Name and Parent. I want to write a repository using MySql for this but is failing when I bind both Childs and Parent properties, ...

Create new ASP.NET Website using Subversion and AnkhSVN

Hello! Im trying to create a new ASP.NET website and add it to my subversion repository but it does not work because subversion only add the C:\Users\XXX\Documents\Visual Studio 2008\Projects\WebApplication1 folder and ignores the project files located in C:\Users\XXX\Documents\Visual Studio 2008\WebSites folder. Why can't I add a ASP...

Eclipse can't see content in CVS Repository

I'm trying to check out files from our CVS Repository (I have access, but I don't have repository admin access), but I'm running into an issue where certain sub-folders of the module in question aren't displaying their contents, and they are failing to do so consistently. That is, certain folders do display their contents, while others d...

private internal maven repository

I wonder whether I can setting up a private maven repository based on my svn. The svn can be accessed via http. If yes, then what should I do? Just uploading the architypes is enough? ...

Etiquette for adding repository during rpm/deb install

We're distributing a commercial application for Linux and we currently make it available for download as a .tar.gz, a .rpm, and a .deb. We're setting up both RPM and DEB repositories to make upgrading easier. Is it appropriate to add our repository to /etc/apt/sources.list or /etc/yum.repos.d automatically as part of the initial instal...

How do I create a class repository in Java and do I really need it?

I have a large number of objects which are identified by names (strings). So, I would like to have a kind of mapping from object name to the class instances. I was told that in this situation I can use a "repository" class which works like that: Server myServer = ServerRepository.getServer("NameOfServer"); So, if there is already an ...

Is there a point to have multiple VS projects for an ASP.NET MVC application?

I'm developing MVC application where I currently have 3 projects in solution. Core (it is supposed to be for Repositories, Business Classes, Models, HttpModules, HttpFilters, Settings, etc.) Data access (Data provider, for instance SqlDataProvider for working with SQL Server datastore - implements Repository interfaces, XmlDataProvider...

Maven problem with invalid jar file which is actually html

i'm running into a problem in my maven build recently, that it downloads a jar file for the javamail-1.4.jar or something, but it turns out the file is not a real jar file, it's actually a html with a link to where to get the correct jar. it seems to be the repo has changed for that. but in my maven setting everything is supposely to g...

One repository/multiple projects without getting mixed up?

Hello After reading Joel's last article on Mercurial, I'm giving it a shot on XP as a single-user, single-computer source control system. One thing I'd like to check, though, is: It'd be easier to just create a repository of all the tiny projects I keep in eg. C:\VB.Net\, but the result is that the changes I make to the different proje...

Are Subversion repositories binary compatible (cross-platform)?

My Subversion repository currently is installed on a dual boot system with Windows and Ubuntu Linux installed. Is it possible to use the same repository with both operating systems, so if I work with Ubuntu I can launch the svn service and access the same repository which I used with Windows? for example the repository files will be a...

Asp.net Mvc 2: Repository, Paging, and Filtering how to?

It makes sense to pass a filter object to the repository so it can limit what records return: var myFilterObject = myFilterFactory.GetBlank(); myFilterObject.AddFilter( new Filter { "transmission", "eq", "Automatic"} ); var myCars = myRepository.GetCars(myfilterObject); Key question: how would you implement paging and where? Any link...

RIA Services Repository Save does not work!?

Hello everybody! Doing my first SL4 MVVM RIA based application and i ran into the following situation: updating a record (EF4,NO-POCOS!!) in the SL-client seems to take place, but values in the dbms are unchanged. Debugging with Fiddler the message on save is (amongst others): EntityActions.nil� b9http://schemas.microsoft.com/2003/1...

In DDD, how do you work with multiple repositories for read-only lists

What do you do if you need to generate a read-only list of data on a page and that data would naturally come from several, potentially 5 or more different repositories? We're using DDD and have been forcing access to our database through repositories, but there is a scenario that has come up that doesn't seem to fit DDD and we're trying...

IQueryable pipline, with inheriting ORM model

I am trying to implement a media library system, and I started out my design from the POCO. I am planning to decouple the actual data access from the object so that, I may persists the same object in XML or SQL. What I have in the design is: public abstract class MediaBase {} public class Image : MediaBase {} public class Movie : Medi...

How many repositories should I use to maintain my scripts under version control?

I mainly code small programs for myself, but recently, I've been starting to code for my peers on my team. To that end, I've started using a Mercurial repository to maintain my code in some form of version control (specifically, Tortoise-Hg on Windows). I have many small scripts, each in their own directory, all under one repository. How...

linq2sql - where to enlist transaction (repository or bll)?

My app uses a business layer which calls a repository which uses linq to sql. I have an Item class that has an enum type property and an ItemDetail property. I need to implement a delete method that: (1) always delete the Item (2) if the item.type is XYZ and the ItemDetail is not null, delete the ItemDetail as well. My question is wh...

How to write this Linq SQL as a Dynamic Query (using strings)?

Skip to the "specific question" as needed. Some background: The scenario: I have a set of products with a "drill down" filter (Query Object) populated with DDLs. Each progressive DDL selection will further limit the product list as well as what options are left for the DDLs. For example, selecting a hammer out of tools limits the Pr...

How to commit a non-subversioned file into a repository ?

The environment: SVN, Netbeans, Hudson SVN Project A: Builds a library file (foo.jar). The build file is under /dist, which is ignored for svn, the sourcecode is under svn control. SVN Project B: holds all library files. (other SVN projects get all their libraries from here via external svn) Question: I want to commit foo.jar from A i...

Extract part of a git repository?

Assume my git repository has the following structure: /.git /Project /Project/SubProject-0 /Project/SubProject-1 /Project/SubProject-2 and the repository has quite some commits. Now one of the subprojects (SubProject-0) grows pretty big, and I want to take SubProject-0 out and set it up as a standalone project. Is it possible to extr...

Add database add-in in Monodevelop 2.2.2 on Windows ?

I have the problem I just installed the new Monodevelop 2.2.2 on Windows but I haven't the database add-in and I cannot add-in with the basic repository. Are-there other repository for that ? Thanks with advance. Narglix ...