entity-framework-4.1
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 分类:问答Is it possible to format the results of a query using a Lambda Expression?
Let\'s say I have this query I pass to a repository: var results = userRepository.Get(u => u.Username == \"JDoe\" && u.Password == \"123456\");[详细]
2023-04-09 07:58 分类:问答Mapping protected properties in Entity Framework 4.1
I want to have a protected list in a class, accessible via methods. In this topic it\'s suggested that I could create a configuration class inside my model class, which I don\'t really like, but as l[详细]
2023-04-09 06:16 分类:问答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 分类:问答EF-Code first complex type with a navigational property
My Model: public class Country { public int CountryId { get; set; } public string Name { get; set; } public virtual ICollection<User> Us开发者_运维知识库ers { get; set; }[详细]
2023-04-09 04:31 分类:问答Entity Framework 4.1 DbContext generator problems
I am new to Entity Framework 4.1 and I really wanted to transition to POCO classes for my model. I found that this was very easy using the \"DbContext Generator\" item provided when you install EF 4.1[详细]
2023-04-09 02:57 分类:问答ADO.NET Entity Data Model extension not working
I want to develop a Visual Studio extension to add extra properties on entity types. As suggested in the answer to a related question I had asked before, I have installed the ADO.NET Entity Data Model[详细]
2023-04-09 02:37 分类:问答Relationship Using Code first with Existing database
When defining a relationship between two types is it important to include a navigation property on both types, such as in the following example:[详细]
2023-04-09 01:59 分类:问答Getting own EF 4.1 Code First classes to work with .NET Membership
I am working on a simple web application that is built with EF 4.1 Code First and MVC3. My Domain Model sits in a project outside the MVC3 project.[详细]
2023-04-09 01:26 分类:问答