repository-pattern
Entity Framework and DetailsView in N-Tier Application
I am absolutely new to 开发者_Python百科Entity Framework so please don\'t hesitate to point any errors. Anyway I\'ll try to describe my problem as I understand it.[详细]
2023-03-27 20:54 分类:问答Entity Framework Generic CRUD
I\'m about to start a small project using .NET 4, C#, and Entity Framework v4. I have 50 tables plus. If I write a separate CRUD for each entity (each table) will be a lot of work and I\'m practicing[详细]
2023-03-27 02:11 分类:问答Repositories should always return objects?
This question got me today, my repositories should always return full objects? They can not return partial data (in an array for example)?[详细]
2023-03-26 20:24 分类:问答NHibernate repository not compile
I don\'t understand why the code below not compile (on the QueryOver line), I tried wih NHibernate 3.1 and3.2[详细]
2023-03-26 00:57 分类:问答Repository Pattern with Stored Procedures
I\'m pretty new to the repository pattern and dependency injection. Almost all repository patterns I\'ve come across has some sort of GetAll() method like so:[详细]
2023-03-25 22:56 分类:问答Help with EF Code first connection string
Im trying to implement a UnitofWork pattern using this Scott Allen tutorial My current SqlUnitOfWork is the folowing[详细]
2023-03-25 07:15 分类:问答Reusable Querying in Entity Framework WITHOUT Repository. How?
Let me say, I have come to the conclusion (after a lot of trial) that Repository & Unit of Work when using Entity Framework is just wrong, wrong, wrong and this says why quite well.[详细]
2023-03-25 05:14 分类:问答Single or multiple repository classes?
My database is relatively small, 8 tables, each with less than 5 columns. I use EF. I created single repository class, but now that I think it might not be the right way to use it. Should I have separ[详细]
2023-03-24 16:59 分类:问答Repository: Examples for a Decorator / Repository pattern in C#
I had the wrong idea of how to create a repository.I created a single repository for each Entity that would CRUD using an ORM, which worked very well.However, I needed more and didn\'t know how to do[详细]
2023-03-24 07:53 分类:问答Specific queries in Repository
I\'ve been doing a lot of reading about repository pattern (Linq2SQL or EF). I\'ve seen some repositories with some specific queries, such as FindUserByName where I would开发者_如何学Python pass a whe[详细]
2023-03-24 05:31 分类:问答