I've built a UserRepository interface to communicate with my LINQ to SQL Data layer, but I'm trying to figure out how to implement validation.
Here is what my AddUser subroutine looks like
Public Sub AddUser(ByVal about As String, ByVal birthdate As DateTime, ByVal openid As String, ByVal regionid As Integer, ByVal website As String) I...
I'm trying to follow the tutorial found here to implement a service layer in my MVC application. What I can't figure out is how to wire it all up.
here's what I have so far.
IUserRepository.vb
Namespace Data
Public Interface IUserRepository
Sub AddUser(ByVal openid As String)
Sub UpdateUser(ByVal id As Integer, By...
I'm "upgrading" an MVC app. Previously, the DAL was a part of the Model, as a series of repositories (based on the entity name) using standard LINQ to SQL queries. Now, it's a separate project and is generated using PLINQO.
Since PLINQO generates query extensions based on the properties of the entity, I started using them directly in my...
I've installed a repository on my computer locally. What I'm trying to do is be able to work on a website locally on my computer and see changes using something like MAMP. When I commit a change though I'd like it to sync my repo with the live website source files on a remote FTP server.
I've done a bit of digging and I know that peopl...
My ~/.m2/settings.xml has a mirrors element which points to an internal repository based on Apache Archiva. But in a home network, mvn tries to timeout trying to look for the internal repository which is no longer accessible. How to configure the settings.xml for internal / external use?
...
My scenario:
This is an ASP.NET 4.0 web app programmed via C#
I implement a repository pattern. My repositorys all share the same ObjectContext, which is stored in httpContext.Items. Each repository creates a new ObjectSet of type E. Heres some code from my repository:
public class Repository<E> : IRepository<E>, IDisposable
where...
Hi, im working in a generic repository implementarion with EF v4, the repository must be resolved by Windsor Container.
First the interface
public interface IRepository<T>
{
void Add(T entity);
void Delete(T entity);
T Find(int key)
}
Then a concrete class implements the interface
public class Repository<T> : IR...
Here is what I have - a git repo of my code:
projects
|-proj1 (no git repo here yet)
|-subproj1 <- current git repo here
Here is what I want - a git repo which is now tracking a new project that uses my code:
projects
|-proj1 <-git repo moved to here, but still tracking files in subproj1
|-subp...
My question is: can i have 2 repositories without losing my original repository.
Lets say i want the the eclair source repository
repo init -u
git://android.git.kernel.org/platform/manifest.git
-b eclair
(already synced and working)
and i would also like to sync with cyanogens repository
repo init -u
git://github.com...
So I have several large projects that use up to 8 different external repos, all specified in settings.xml rather than in poms. A lot of our internal dependencies are snapshots, so this obviously causes a lot of checking for updates across several external repos, when they are all in our internal repo.
So my question is, is there a way ...
Hi all,
I am currently in the process of designing/implementing a repository pattern in a .NET application. After many days of research I feel I am getting close but there really is so many ideas and opinions out there I was hoping to get some peoples thoughts on any design considerations they may have had if you've implemented one your...
I accidentally committed some changes to the repository that were not complete. I do not want to lose my local changes, but i want to revert the file in the repository to where i was before i committed the changes.
...
what would be a preferred solution for hosting a small local plugin repository with a couple of our own plugins?
the team is using RAD7, which is Eclipse 3.2 based
we cannot upgrade RAD to 7.5.5 yet, so all Ganymede/Galileo repo tools cannot be used, i guess
...
In git/gitosis a single ssh key is stored with the filename the same as user name.
i.e. myusername.pub
If I want to access a repository from many machines, must I make a new user from each location or is there a way to have multiple ssh keys for a single user.
...
I’m just getting started with Mercurial, and I’ve read Joel Spolsky’s Hg Init tutorial, which I liked.
I’m wondering: let’s say I have a private repository and I work on it for about a month. Then I decide I want to centralize it or make it public, like on bitbucket.org. I want to retain all the history.
The intuitive thing would be ...
Mercurial - Is it possible to merge changes from the trunk to a branch, within the same repository?
If yes, is it possible with TortoiseHg?
...
I was using a github repository from a previous developer.
I am the only coder on this project, so I forked the project over to my own github repository.
Now I would like to commit soley to my repo.
Unfortunately, I realized that I never changed my .git/config , so I was still committing to the old repo. I just changed it to the appro...
I have a set of repositories with a structure similar to the following:
/Source
/branches
/tags
/trunk
/FolderP
/FolderQ
/FolderR
/Target
/branches
/tags
/trunk
/External
/Library1
/Library2
/Library3
/Internal
/FolderA
/FolderB
/FolderC
/FolderX
/FolderY
...
Here is sample code which I used to update customer table.
public void UpdateCustomer() {
SAPDB db = new SAPDB();
SubSonicRepository<Customer> ssr = new SubSonicRepository<Customer>(db);
Customer customer = new Customer();
customer.ID = 5;
customer.CustomerName = "John";
int val = ssr.Update(customer);
}
Please le...
I have this base abstract class which implements repository pattern
public abstract class Repository<T> : IRepository<T> where T : class
{
private ObjectSet<T> _entitySet;
private ObjectContext _dataContext;
public Repository(ObjectContext context)
{
_dataContext = context;
_e...