repository

ASP.MVC: Repository that reflects IQueryable but not Linq to SQL, DDD How To question

拜拜、爱过 提交于 2019-11-27 01:04:43
I want to create a DDD repository that returns IQueryable Entities that match the Linq to SQL underlying classes, minus any relations. I can easily return Entities minus the relations with a Linq select new {field, field, ... } projection. How do I code the Repository Entity class? How would I return an object from the repository having the repository class not the Linq to SQL class and still fill it with multiple entities from the Linq selection? How would I reference this returned class in my ViewModel? I am very new to this, thus the obvious mistakes. Am I missing the boat and should only

I want make push and get error: src refspec master does not match any

怎甘沉沦 提交于 2019-11-27 00:43:19
问题 I'm hosting on Heroku. I want to make a push: git push master Heroku I gets the message: error: src refspec master does not match any. error: failed to push some refs to 'git@heroku.com: etc ...' 回答1: This is work for me:- git push heroku HEAD:master 回答2: I have expericed the problem you have. I solved this problem like this make file whatever commit push $ touch readme $ git add . $ git commit -m "init" $ git push heroku master I don't know why. 回答3: At first glance it looks like you have

How to reduce git repo size on Bitbucket?

拜拜、爱过 提交于 2019-11-27 00:36:11
问题 Summary of my problem: One of my private repositories on Bitbucket suddenly more than doubled in size after I pushed an addition of a few hundred bytes to two existing files. The repo is now over 2GB, which has caused Bitbucket to put it into read-only mode. Because it is in read-only mode, I cannot push changes that would reduce the repo size. (Catch 22.) Details: My company recently began hosting git repositories on Bitbucket. One of the repositories I am in charge of had a size of about

Moving a git repository up one hierarchy level

六月ゝ 毕业季﹏ 提交于 2019-11-27 00:34:14
Git beginner question: I have a small private webproject which is versioned locally with msysgit. There is no exterior repository, as it's only for me, so i can bascially do whatever I want. I've had this set up in the project directory, ie in "webroot". Now a second directory had to be created, placed parallel to webroot. Let's call it assets. So structure is now as follows: \ project directory ----\webroot ----\assets I'd love to include this new directory in the git repository, so that I'd also version changes to files stored there, but of course I can't use "git add ../assets". Neither am

How can I trigger garbage collection on a Git remote repository?

妖精的绣舞 提交于 2019-11-27 00:33:34
问题 As we know, we can periodically run git gc to pack objects under .git/objects . In the case of a remote central Git repository (bare or not), though, after many pushes, there many files under myproj.git/objects ; each commit seems to create a new file there. How can I pack that many files? (I mean the ones on the remote central bare repository, not on local clone repository.) 回答1: The remote repo should be configured to run gc as needed after a commit is made. See the documentation of gc.auto

No property found for type error when try to create custom repository with Spring Data JPA

*爱你&永不变心* 提交于 2019-11-27 00:17:08
问题 I have a Media entity that has some basic fields for files uploaded by the user. For saving the bytes of the files uploaded, I want to create a custom repository that holds that functionality. Following the steps in the Spring documentation, I've created an interface that looks like this: public interface MediaBytesRepository { public byte[] getBytes(Media media) throws IOException; public void saveBytes(Media media, byte[] bytes) throws IOException; public void appendBytes(Media media, byte[

What is included in JCenter repository in Gradle?

你。 提交于 2019-11-27 00:12:14
问题 From Gradle 1.7 there is new Public repository JCenter. repositories { jcenter() } So I want to ask if all jars from Maven Central are parts of this repo? And if not from what is JCenter repo consists of? And is JCenter more reliable from Maven Central as downtime? 回答1: jcenter() is similar to mavenCentral() . Have a look at https://bintray.com/bintray/jcenter for more details. The jCenter guys claim that they have a better performance than Maven Central. 回答2: As mentioned in https://bintray

How do you stop maven from trying to access http://repo.maven.apache.org?

随声附和 提交于 2019-11-27 00:03:41
问题 The development machine cannot access the internet, and take about 60s to timeout. When I try to build, I see Downloading: http://repo.maven.apache.org/maven2/com/google/gsa-connector/2.8.0/gsa-connector-2.8.0.pom However, I have the following in my POM: <repository> <id>bb-nexus</id> <url>http://repo.dev.bloomberg.com/content/groups/public</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>nexus-3rdparty</id> <url

Multiple SVN Repositories or single company repository

蹲街弑〆低调 提交于 2019-11-27 00:03:05
问题 Should we have one single repository for all the company, which contains many development projects, or a repository per project? Any ideas on experience / best practice? 回答1: Personally I would definitely prefer separate repository per project. There are several reasons: Revision numbers . Each project repository will have separate revisions sequence. Granularity . With repository per project you just can't make a commit into different projects having the same revision number. I assume this

How to import a Project into bitbucket repository from Android Studio?

你说的曾经没有我的故事 提交于 2019-11-27 00:00:48
问题 So basically I have an Android Studio project on my local computer and I need to add it into my BitBucket repository I created online. I just can't get it right with Android Studio. I can't upload files from Android Studio project to my BitBucket repository. How can I do such a thing? 回答1: Here is how I did it without plugins: Create the repository on your Bitbucket account Create your project in Android Studio In Android Studio, Go to VCS Choose 'Enable version control' Choose Git and press