repository

Help with EF Code first connection string

与世无争的帅哥 提交于 2020-01-03 03:38:10
问题 Im trying to implement a UnitofWork pattern using this Scott Allen tutorial My current SqlUnitOfWork is the folowing public class SqlUnitOfWork : IUnitOfWork { public SqlUnitOfWork() { var connectionString = ConfigurationManager .ConnectionStrings[ConnectionStringName] .ConnectionString; _context = new ObjectContext(connectionString); _context.ContextOptions.LazyLoadingEnabled = true; } public IRepository<PhysicalTest> PhysicalTests { get { if (_physicalTests == null) { _physicalTests = new

Password protected jenkins maven repository server - access from maven

放肆的年华 提交于 2020-01-03 03:16:09
问题 I've got a password protected jenkins server with the Jenkins Maven Repository Server plugin. My problem is, as it is password protected, i can't access the /plugin/repository/everything/ repo from within maven ( Could not transfer metadata <metadata> from/to <repo-name> (http://ci.mydomain.com/plugin/repository/everything/): Access denied to: <repo>/<identifier> , ReasonPhrase:Forbidden. ) What i tried: - Putting the server credentials in the .m2/settings.xml - Basic auth: http://<user>:

Gitweb not displaying some repos

早过忘川 提交于 2020-01-02 18:48:52
问题 I am trying to use Gitolite + Gitweb but I am running into some problems.. My conf/gitolite.conf is the following @dataset_repos = dat1 dat2 @closedsrc_repos = cod1 cod2 @opensrc_repos = testing @admins = user1 user2 @bios = user1 user2 user3 @coders = user1 user3 repo gitolite-admin RW+ = @admins repo @opensrc_repos RW+ = @all repo @dataset_repos RW+ = @admins @bios repo @closedsrc_repos RW+ = @admins @coders When I first inserted repository code1 and code2, git told me: remote: Initialized

Gitweb not displaying some repos

五迷三道 提交于 2020-01-02 18:48:20
问题 I am trying to use Gitolite + Gitweb but I am running into some problems.. My conf/gitolite.conf is the following @dataset_repos = dat1 dat2 @closedsrc_repos = cod1 cod2 @opensrc_repos = testing @admins = user1 user2 @bios = user1 user2 user3 @coders = user1 user3 repo gitolite-admin RW+ = @admins repo @opensrc_repos RW+ = @all repo @dataset_repos RW+ = @admins @bios repo @closedsrc_repos RW+ = @admins @coders When I first inserted repository code1 and code2, git told me: remote: Initialized

DDD (java) Aggregate roots and persistence

半世苍凉 提交于 2020-01-02 14:49:42
问题 I'm creating an application which will make use of tables of various sizes, while I have worked on a project labeled DDD before it didn't really get the persistence part right and thus I'm left researching things. One thing I don't fully grasp and can't seem to find concrete examples of is how to persist "children" of aggregate roots. I am working without an ORM (just plain old DAO) which is quite hard to find examples of (this is actually a project for uni which is db specific so I'm 'not

DDD (java) Aggregate roots and persistence

蓝咒 提交于 2020-01-02 14:48:10
问题 I'm creating an application which will make use of tables of various sizes, while I have worked on a project labeled DDD before it didn't really get the persistence part right and thus I'm left researching things. One thing I don't fully grasp and can't seem to find concrete examples of is how to persist "children" of aggregate roots. I am working without an ORM (just plain old DAO) which is quite hard to find examples of (this is actually a project for uni which is db specific so I'm 'not

One git for multiple folders in differents places

▼魔方 西西 提交于 2020-01-02 13:05:29
问题 I think this subject was asked before, but I didn't find anything interesting to work with. I read this Can I store the .git folder outside the files I want tracked? and Single Git repo with directories in multiple locations try to play with it, but didn't find the way to achieve this well. The goal of this, is to store backup preferences for applications and dotfiles. But the strucuture of files look to somethink like this -- /Users/Jeremy/Library/Application\ Support/Sublime\ Text\ 3

One git for multiple folders in differents places

倾然丶 夕夏残阳落幕 提交于 2020-01-02 13:05:07
问题 I think this subject was asked before, but I didn't find anything interesting to work with. I read this Can I store the .git folder outside the files I want tracked? and Single Git repo with directories in multiple locations try to play with it, but didn't find the way to achieve this well. The goal of this, is to store backup preferences for applications and dotfiles. But the strucuture of files look to somethink like this -- /Users/Jeremy/Library/Application\ Support/Sublime\ Text\ 3

Extract authorship information from git repository

假装没事ソ 提交于 2020-01-02 12:01:57
问题 I am trying to extract (source code line, author label) pair from git repositories. The easiest way to do that is using git blame. The problem is that git blame takes the last committer as the author no matter whether the committer just indents the code or really changes the code. Do you know any method to it better? Or maybe before trying to solve the problem, I should first check how many source lines are associated with multiple authors. If the percentage is small, there is no need to

How to reconnect to my git repository on GitLab from NetBeans IDE 8 and Jenkins?

谁说我不能喝 提交于 2020-01-02 09:24:27
问题 Something seems to have gone wrong with my NetBeans git set-up. I am using NetBeans IDE 8.0.1 on Windows 8.1 and I have a private git repository hosted on GitLab.com. But ever since GitLab updated to version 7.3.1 I am unable to connect to the git repository from NetBeans. It does not matter if I fetch, pull or push, I get the same response: "Cannot connect to the remote repository at https://gitlab.com/<group-name>/<project-name>.git" (group name and project name omitted for privacy reasons)