I have to build the architecture of a web application using Entity Framework 4.1 and ASP.NET. I already have the database structure, so I have to use the database-fist. I have read lots of articles an
I\'ve noticed, there\'s really no rhyme or reason to whether my repositories take objects or primitives as parameters, or whether CREATE methods return just an int (ID from the DB) or the full-fledged
It is correct to say that my IService has everything that IRepository has, and more some specific operations?
This model is simplified, only used for demonstration. In my application got: Data public class Product {
I have 3 tables: Player => PlayerId (Primary Key), Name, etc Team => TeamId (Primary Key), Name, etc
I\'m implementing RavenDB in a project and after a few days trying the database i\'m now structuring this application but i\'m having a question.
I have an interface IRepository to abstract my repository: Fake repository public class Repository : IRepository
I am using an example off this link to update database tables in SQL Server 2008 following the repository and Unit of Work pattern.
In my application got: Classes public class User { [Key] public Guid Id { get; set; } public string Name { get; set; }
I\'m writing an MVC app using the repository pattern. It is a financial system which has invoices in them. I have validation in the Invoice model: