entity-framework-4
What uses should I make of Entity Framework Entity Partial Classes?
I\'m working with EF 4.1 Database first. I was wondering what sort of things I may use Entity Partial Classes for. What would some examples of possible functionality I might want to add to partial cla[详细]
2023-04-09 11:04 分类:问答Serial Number (Record Count) in Razor?
Could some one point out how to include a Serial Numbe开发者_开发知识库r while populating from a table on a Razor page view.[详细]
2023-04-09 09:22 分类:问答How to determine if the relationships in an entity collection have been saved to the database
I have a situation where I\'m adding existing entities to an entity collection. Before calling \"context.SaveChanges()\", I need to know which entities in the entity collection have not had their rela[详细]
2023-04-09 09:09 分类:问答Entity Framework single method for Save/Update
The problem is I\'m trying to find a single method to save an entity, be it a new entity or an already loaded entity. Most all code samples separate Add and Save methods which goes against so many oth[详细]
2023-04-09 08:44 分类:问答Can you do entity inheritance in EF on an entity that is mapped to stored procedures?
I have a question about inheritance in Entity Framework 4. We are using a database-first approach and would like to restructure our model to use inheritance. Here is a white board mock up of the hiera[详细]
2023-04-09 07:34 分类:问答MVC or MVP architecture for winform applications using Entity Framework as ORM
I am going to develop a winform project of considerable size. I am planning to use Entity Framework as ORM tool. Now I am searching for an architecture(MVC/MVP/MVVM etc..) to implement all these. Firs[详细]
2023-04-09 06:31 分类:问答binary propery in EF4 with mysql -- datatype
I am using mysql together wi开发者_如何学JAVAth EF4 and VS2010. I am using model first and uses the Generate database from model function to create the database.[详细]
2023-04-09 06:27 分类:问答Change Tracking with DTO to POCO Entity Framework 4/4.1
I\'ve used Entity Framework 4.0 POCO entities for persistence layer in the current project. I\'ve used DTO\'s to send the data from Service Layer to UI Layer. Repositories and inside of Service Layer[详细]
2023-04-09 05:29 分类:问答EF 4.1 Code-first executes queries 3x slower than regular EF in my application
I have a pet project (a simple forum application) that I use to test out all the latest .NET tech and I recently got around to toying with Entity Framework Code-First. This app already had an existing[详细]
2023-04-09 05:12 分类:问答What 'possible data inconsistency' is entity framework worried about in a 'foreign key participating in multiple relationships' situation?
Suppose the following database schema: Table A: AId (PK) Table B: BId (PK) Table C: CId (PK) Table AB: AId, BId (composite PK, FKs to A and B), Data[详细]
2023-04-09 04:07 分类:问答