entity-framework-4.1
Adding multiple inherited instances of different children types in a TPT Mapping EF4.1
Given the model: public abstract class Person { public int Id {get;set;} } public class Customer : Person[详细]
2023-04-13 09:44 分类:问答Code First Object not properly instantiating
I havea class department inheriting from activeentity public class ActiveEntity : Entity, IActive { public ActiveEntity()[详细]
2023-04-13 09:35 分类:问答Validation failed for one or more entities. See 'EntityValidationErrors' property for more details [duplicate]
This question already has answers here: Getting exact error type in from DbValidationException (8 answers)[详细]
2023-04-13 08:53 分类:问答EF Code first database/table initialization - WHEN does it happen?
My application is using EF code-first design and all generally works very well. Via a private configuration file, I can specify how I would like EF to handle changes to the db schema, and so create/r[详细]
2023-04-13 06:32 分类:问答Using a predicate to find all rows?
I have the following code, I am using the repository pattern in EF 4.1 and Unit of Work. However because I dont understand very much how Expression and Predicates works I ask the following:[详细]
2023-04-13 06:19 分类:问答many to many relationship in EF 4.1
I am just doing a small application with 3 tables. Applicants Positions ApplicantsPerPosition. This last one would be a many to many relationship with the other 2 tables.[详细]
2023-04-13 05:50 分类:问答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 分类:问答EF 4.1 Table-per-Hierarchy
I\'m trying to implement a simple TPH example from http://msdn.microsoft.com/en-us/library/dd793152.aspx. I have two tables:[详细]
2023-04-13 02:04 分类:问答How do I redirect to a page with an ID that doesn't exist yet?
Basically put, I have an action that saves a form to a database, then redirects the user to a list. From this list, the user can select a few actions.[详细]
2023-04-13 01:56 分类:问答EF Code First unidirectional One-To-Many with Data Annotations
Say I have the following POCO classes: public class Parent { public int ID { get; set; } } public class Child[详细]
2023-04-13 01:03 分类:问答