repository-pattern
Multi layered architecture using Entity Framework 4 and Repository Pattern
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[详细]
2023-04-13 02:20 分类:问答Should repositories use objects or primitives?
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[详细]
2023-04-12 14:53 分类:问答IService extends IRepository correct?
It is correct to say that my IService has everything that IRepository has, and more some specific operations?[详细]
2023-04-12 05:05 分类:问答Repository that accesses multiple tables
This model is simplified, only used for demonstration. In my application got: Data public class Product {[详细]
2023-04-12 03:54 分类:问答How would I implement a solution for unique keys?
I have 3 tables: Player => PlayerId (Primary Key), Name, etc Team => TeamId (Primary Key), Name, etc[详细]
2023-04-12 00:48 分类:问答Application architecture - Transactions w/ RavenDB
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.[详细]
2023-04-11 19:16 分类:问答public T Add<T>(T entity) | I have three types of collections, how to know which to add the entity?
I have an interface IRepository to abstract my repository: Fake repository public class Repository : IRepository[详细]
2023-04-11 12:24 分类:问答Entity Framework CreateObjectset Attach method not updating
I am using an example off this link to update database tables in SQL Server 2008 following the repository and Unit of Work pattern.[详细]
2023-04-11 12:21 分类:问答Where putting logic to Approval user?
In my application got: Classes public class User { [Key] public Guid Id { get; set; } public string Name { get; set; }[详细]
2023-04-11 10:26 分类:问答MVC validation in model requires database repository
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:[详细]
2023-04-10 02:48 分类:问答