repository

How to get first EntityKey Name for an Entity in EF4

Hello, How can I get the 1st EntityKey name for an Entity for Entity Framework 4 because I'm building a repository system and I wanted to get an item by Id (which is the primary key oin EF is the 1st entitykey for the entity) I'm using this code public virtual TEntity GetById(string keyName, Guid entityId) { var ent...

subversion repository management

In my project, every bug and/or enhancement must be developed in a branch before getting merge in the trunk. Since the branch (copy trunk) are not deleted after completion, we have actually more than 200 branch unused in our repository (new project). I recently notice a slow down from the server for small operation in the repository. My...

Selecting distinct objects from collection of objects using lambda expressions

We have a project using Fluent NHibernate. There is an object called BluePart with a property of Oem of type Oem. public class BluePart : DomainEntity { ... public virtual Oem Oem { get; set; } } The Oem object has several properties including OemCode and OemDescription. public class Oem : DomainEntity { ... public vi...

Mercurial unreliable sub-repos. Any alternative?

I trying to like mercurial, but is driving me nuts. I convert from SVN to it thinking in the promise of better workflows. Also, I use git in contract work, so I get the whole distributed idea. I choose mercurial for the promise of more simplicity and better windows support. I'm a solo developer right now, working in a project that comp...

Protecting files in git repository

I have a central repository with a subset of files that I want to protect from been changed (by pushing) from another users. If I add this files to .gitignore they would not be cloned. Is it possible to give the ability to clone all files, but after cloning add some of them to .gitignore on the client side? ...

How to Manage a dataset together with an application?

The application's code and configuration files are maintained in a code repository. But sometimes, as a part of the project, I also have a some data (which in some cases can be >100MB, >1GB or so), which is stored in a database. Git does a nice job in handling the code and its changes, but how can the development team easily share the da...

Android - Add new library to repo?

Hey Guys, I'm trying to add a new library to the android platform, but when I run the "repo status" command, the folder in which my library is located does not show up as added. If for example my library is called foo, I created a folder /external/foo and placed my library code in it. This foo folder is not seen by the "repo status" c...

Are there any good vb.net code repositories around?

I was wondering if there are any good vb.net code repositories around where people share code they have written, widgets they have developed, classes developed? I hate re-inventing the wheel. ...

How to clean a remote GIT repository?

I've a hosted GIT repository with limited disk space available but connected with a RedMine system. I'm packaging some software and pushing and pulling on the repository, I'm run out of space. Now I need to clean (the packages are note needed anymore). How can I delete these packages from the remote repository history, considering that I...

Can drush (drupal) do CVS checkout?

I'm using drush, which supposedly can be used instead of a cvs program to checkout from the drupal repository. All tutorials I've found don't mention drush, instead they start with cvs. cvs -z6 -d:pserver:anonymous:[email protected]:/cvs/drupal checkout -d cms -r DRUPAL-6 drupal How do I change this command so it's compatible ...

Repository Pattern in asp.net mvc with linq to sql

I have been reading though the code of the NerdDinner app and specifically the Repository Pattern... I have one simple question though, regarding this block public DinnersController() : this(new DinnerRepository()) { } public DinnersController(IDinnerRepository repository) { dinnerRepository = repository; ...

DDD: Repositories are in-memory collections of objects?

I've noticed Repository is usually implemented in either of the following ways: Method 1 void Add(object obj); void Remove(object obj); object GetBy(int id); Method 2 void Save(object obj); // Used both for Insert and Update scenarios void Remove(object obj); object GetBy(int id); Method 1 has collection semantics (which is...

What is a good practice with a Repository and Business objects?

I have several business classes, like Address, Product, Order, OrderLine. In this case, I have a question concerning my Order class and how it should be updated in the repository. The Order class can have more than 1 OrderLine. The class looks something like the following: class Order { private List<OrderLine> orderLines; public A...

Missing constructor in a class derrived from a generic class

I'm trying to create a generic LINQ-TO-SQL repository based on this post which basically lets you define a generic base repository class, then you can define all of your actual repository classes by deriving from the generic base. I want the option of using a repository with or without passing in the data context, so I decided to create...

DataContext.Entity vs DataContext.GetTable<Entity>

I'm implementing the repository "pattern" in my ASP.NET MVC application. So i was doing some reading to decide whether i should expose the entire DataContext (initializing it in the constructor) or just the table via .GetTable<T> when performance is the most important factor. While doing my googling i ran into the following code at http...

Maven getting stuck at a website

I use maven to build projects and it gets stuck at ftp.cica.es/mirrors/maven2 repository. What is the way around it? ...

Important(useful) websites for the "Android" related stuff

Hello all Androiders, As such There is no particular repository for Android, i would like to initiate this. Now, let me clear about my idea: My idea is that Wherever you find any website and if you find it helps for the Android, then pls try to post here. This post works as a common Android-Database storing all the website-links which ...

Persisting Data from the UI

I am doing a little testing with EF4. I have built a simple DB which contains one table: Table: Person Column: Id Column: Name I have a windows form application that contains a form with a gridview. I have the Model.edmx all setup and works correctly (tested without encapsulating the context). I have now encapsulated the context int...

subversion branches with multiple Scrum teams

So we have varying opinions on how to deal with our source in regard to parallel Scrum teams sprints. The background info is we have two 7 man teams working on the same baseline of code in 2 week iterations towards the same product release. Team A: In one camp we have the preferred approach being: Each team work in its own branch and at...

Recommendable Maven repository search engines?

mavensearch.net doesn't know current versions in many cases, mvnrepository.com is a bit more up to date but doesn't show repositories from where a package can be downloaded, what I would find very useful. What Maven respository search engines do you use and like? ...