Let's assume that an application has all necessary business rules in the model / presentation layer and that they work fine. My question is one of whether or not redundant business rules (i.e. a span of two dates cannot overlap any other existing spans) should be used in a repository like SQL Server.
Is it necessary/beneficial to add a...
I'm going to be getting some server space of arbitrary size, and be given ssh access to it to set up a subversion repository.
But, I have no idea how much space to ask for. For now, it's going to host my cms project so that my colleague can contribute to the code as well. But if it gets anywhere, we hope to expand on the system, possibl...
If a service uses repositories to persist data, shouldn't it be in a repository?
...
As you all know creating a web service with generic methods is not possible. You have to design the message.
But I had the idea of creating a wrapper around WCF using Reflection.
public class WcfRepository<T> : IWcfRepository<T> where T : class
{
public IList<T> GetList()
{
Type wcfService = typeof ...
context:
I have an entity Book. A book can have one or more Descriptions. Descriptions are value objects.
problem:
A description can be more specific than another description. Eg if a description contains the content of the book and how the cover looks it is more specific than a description that only discusses how the cover looks. I don...
I'm getting this error:
ex = {"The binary operator Equal is not defined for the types 'MySite.Domain.DomainModel.EntityFramework.NickName' and 'System.Int32'."}
What I tried to do was do a select all where the NickNameId = someIntPassedIn... the problem is that the NickNameId is a foreign key, so when it compares the someIntPassedI...
for example:
class repository {
private DataContext db = new DataContext();
public IQueryable<Blah> someMethod(int id){
return from b in db.Blah ... select b;
}
public IQueryable<Blah> someMethod2(int id){
return from b in db.Blah ... select b;
}
public IQueryable<Blah> someMethod3(int id){
...
I have a generic repository and when I'm using a DoQuery method to select objects from the database, I need to load some of the related entities in order to not get nulls in the place of the fields that are foreign keys.
The problem is that the repository is generic, so I do not know how many properties need loading or what their names ...
Hi,
A developer from our office accidentally deleted the Repository from the Visual SVN server.
Every developer in the office has a copy of the files, so I'm not worried about the files.
What I want to recover is the changes log.
Can this be done?
...
Hi,
I guess, i couldnt find solution to this problem. The partition of my hard drive containing the source codes is corrupted, however I still do have one partition intact containing the SVN repository of that source code. Can anyone suggest me if I can retrieve whole data (my commited source code) from the repository alone?
Regards
Var...
I am trying to analyze what happened in a software development effort. I have a copy of the subversion repository but while working my way through it I found something I wasn't expecting.
The order of the revisions does not coincide with the date order.
Example:
Revision 1 - Day 0
Revision 2 - Day 3
Revision 3 - Day 10
Revision 4 - Day...
In some projects, I have to deal with more than one programming language (for example a Delphi GUI application which communicates with an C# or Java app). The Subversion repository currently contains three top branches, one per language.
Should I change this and group all parts of the project in the trunk like in the following example ...
I had checkedout my project code in system. Now i don't have permission to commit code to my repository..
so what i want to do is, i want create a repository using my code. How we can do this. Please help me
...
I have a Rails application working on Passenger deployed using Capistrano from a subversion repository. The subversion repository is lost. We just have a folder named "cached-copy" which I believe has been made by svn. Is it possible to recreate a subversion repository from this "cached-copy"?
...
Hi,
I'd like to have a way in which 'mvn install' puts files in a repository folder under my source (checkout) root, while using 3rd party dependencies from ~/.m2/repository.
So after 'mvn install', the layout is:
/work/project/
repository
com/example/foo-1.0.jar
com/example/bar-1.0.jar
foo
src/main/java
...
I've created a Codeplex site for an app I'm building and right now I just right click the entire solution folder Visual C# Express created for me, and used that.
Now in my repo I have a lot files that I'm assuming will enable the user to compile my application on their end.
I heard I shouldn't upload the /obj folder and some other thin...
For Perl, there is cpan.org, where I can lookup and reuse any previously built package in my own code.
Is there a similar open source code repository for C#?
Edit: Thanks all. I also just found code.google.com.
...
Hi Everyone,
I've been struggling with this all morning and I may be completely on the wrong track since Rhino Mocks was originally designed for Unit Testing.
However, I have a couple of resusable backend components that handle Authentication and 'Blogging' like features of a website, each contains their own data access layer. While d...
hi
I have gathered a collection of various templates, small utility classes, some obscure domain specific snippets of C++ and python written by me.
was wondering if there is a public domain or open source code repository/dump where the code can be contributed.is there such a thing?
I have source Forge projects, but this files are somew...
I have a repository like so:
public interface IRepository
{
void Save<T>(T entity);
void Create<T>(T entity);
void Update<T>(T entity);
void Delete<T>(T entity);
IQueryable<T> GetAll<T>();
}
My question is, where should my transaction boundaries be? Should I open a new transaction on every method and commit it befo...