repository

How to ignore folder without removing it from my repository

家住魔仙堡 提交于 2019-12-03 03:38:06
I have this tmp/ and cache/ directories, that keep generating files that don't need to be commited. How can I set it so svn ignores them, but doesn't delete them or remove them from the repository, they are needed for the site to work. $ cd /path/to/app/tmp $ svn propset svn:ignore '*' . $ cd /path/to/app/cache $ svn propset svn:ignore '*' . EDIT: Here's the steps if you already previously committed $ cd /path/to/app/tmp $ svn st M slkdjfag.jpg M gasgsag.png . #bunch of M's $ svn rm * --force $ svn ci -m'trunk: cleaning up tmp directory' $ svn propset svn:ignore '*' . $ touch a $ svn st //

Designing repositories for DI (constructor injection) for service layer

℡╲_俬逩灬. 提交于 2019-12-03 03:36:01
I'm building an MVC3 app, trying to use IoC and constructor injection. My database has (so far) about 50 tables. I am using EF4 (w/ POCO T4 template) for my DAC code. I am using the repository pattern, and each table has its own repository. My service classes in my service layer are injected w/ these repositories. Problem: My service classes are growing in the number of repositories they need. In some cases, I am approaching 10 repositories, and it's starting to smell. Is there a common approach for designing repositories and service classes such that the services don't require so many

Folder structure for many projects in one SVN repository?

大憨熊 提交于 2019-12-03 03:34:20
问题 I just created a Google Code SVN repository for storing my school projects and homework, and to allow easy transferring between school and home. Its default directories it creates are: https://simucal-projects.googlecode.com/svn/trunk/ https://simucal-projects.googlecode.com/svn/tags/ https://simucal-projects.googlecode.com/svn/branches/ I've never used a repository for more than one project, but after reading: One svn repository or many? I've decided to have a single repository for all of my

Correct disposing using Repository and Unit Work patterns with Entity Framework?

社会主义新天地 提交于 2019-12-03 02:51:22
Cheers!I have some doubts about using Unit of Work with Repository. Specially a role of child context from Entity Framework. I have searched a lot of information about this theme, but all that I found just different types of using patterns, I'm confused and I can't understand main think. 1.Where I should realize disposing and saving? -Is it correctly realize Disposable in Inheritance class of DbContext? After that realize in Repository and Unit of Work or just in Uni fo Work? -Where put method Save in Unit of Work or Repository? My repository will be Generic Is my code is correct in architect

How can I add remote repositories in Mercurial?

六月ゝ 毕业季﹏ 提交于 2019-12-03 02:48:37
问题 I am working with Git repositories in the following way: I have the master repository and several remotes on the different production machines. I am pushing the production code to the remotes and restart the services for the changes to take effect. I am about to switch from Git to Mercurial and I would like to know ahead how I can achieve something like that. 回答1: You add entries to the [paths] section of your local clone's .hg/hgrc file. Here's an example of a section that would go in the

How to “repo init” on a disconnected system?

拈花ヽ惹草 提交于 2019-12-03 02:33:45
I have mirrored a repository with repo init -u <uri of manifest> --mirror repo sync and copied it (by usb) to a system disconnected from the internet along with the repo script and the repo clone bundle repository from https://gerrit.googlesource.com/git-repo/clone.bundle . I now want to create new client from the mirror, but when I run the command. repo init -u <uri of manifest on mirror> i get the following error. fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno -2] Name or service not known So I have the clone.bundle but have no way to persuade

sbt: How can I add a local filesystem jar to my project?

烈酒焚心 提交于 2019-12-03 02:10:08
问题 I have a library compiled to a jar (not an sbt project, just the jar file) that's not available on a repository. Is there a simple way to add a reference to the jar in the filesystem/project directly? 回答1: You can put the jar in your project's lib folder (create it if it doesn't exist), it will then appear on your project's unmanaged-classpath. To publish a jar file locally, if you have an sbt project that produces the jar, it should be as simple as invoking "publish-local" to publish the jar

mvn:install to place my jar in nexus remote repository

佐手、 提交于 2019-12-03 02:00:59
I am using maven in eclipse (m2 eclipse) When i execute mvn:install i want my jar(artifact) to be installed in the nexus repository which is located on the server(right now the installed jar is placed in the local system repository).. how can i do that ? I even changed this to my local repository address Typically, you'd use mvn deploy to deploy to a non-local repository. You will, of course, need to have the repo configured, either in your maven settings.xml or in the project POM. As we always use the same internal repo, I've done this in the Maven settings.xml, more precisely, the "profiles"

How to implement IDisposable inheritance in a repository?

三世轮回 提交于 2019-12-03 01:35:27
I am creating a generic repository and do not know what the correct way to implement the dispose functionality: I'm not using IoC/DI, but i'll refactor my code in the future to do this, so: My code: IUnitOfWork Interface: namespace MyApplication.Data.Interfaces { public interface IUnitOfWork { void Save(); } } DatabaseContext class: namespace MyApplication.Data.Infra { public class DatabaseContext : DbContext, IUnitOfWork { public DatabaseContext(): base("SQLDatabaseConnectionString") { Database.SetInitializer<DatabaseContext>(null); } protected override void OnModelCreating(DbModelBuilder

Designing an MVC repository using ViewModels

孤街醉人 提交于 2019-12-03 01:33:06
I want to create a repository class to separate out my data logic from my controllers. I am using a ViewModel to represent some data that will be filled with data from different tables. Here are some questions I have: For a method like GetAll() , do I return an IQueryable<MyViewModel> or IQueryable<Entity> ? If I return viewmodels, how do I cope with a GetAll() that pulls thousands of records? Do I create a constructor for my custom ViewModel class that takes the Entity as a parameter to do the mapping? (I'm still unfamiliar with automapper so just need an understanding on how to do this from