entity-framework-ctp5
Entity Framework CTP 5 RelatedTo Attribute not working
Using Entity Framework CTP 5 I am trying to make a list of foreign keys in my class. But I keep getting an error which says RelatedTo can not be found.[详细]
2023-02-21 05:34 分类:问答EF CTP5 - IDbSet.Include
I have a generic repository and I am having some trouble with the Include extension method. My rep开发者_如何学编程ository looks like this:[详细]
2023-02-20 13:31 分类:问答Mocking DbEntityEntry.CurrentValues.SetValues() in EF4 CTP5 Code First
I am trying to use the DbEntityEntry.CurrentValues.SetValues() method to facilitate updating an existing entity with values from a non-entity DTO (see: http://blogs.msdn.com/b/adonet/archive/2011/01/3[详细]
2023-02-19 20:37 分类:问答Entity Framework 4.1: How can I access virtual entity properties after creating a new entity?
Here is my simplified code: // Domain models public class Order { public int ID { get; set; } public int CustomerID { get; set; }[详细]
2023-02-19 19:04 分类:问答EF 4.1 Code First adding to a foreign key collection
If I have an entity with a collection property for another entity. What is the best way to add a new entity and it\'s related entities? The problem I have is that the collection is initially null.[详细]
2023-02-19 17:52 分类:问答EF Code First CTP5. How to store the Inheritated data from a baseclas
I have a User class that holds some default data. public class User : BaseEntity { //-- Declaration private string _firstname;[详细]
2023-02-19 15:40 分类:问答EF4 CTP5 one to one mapping with existing database
So I have an existing database with a Users table and an Airports table each with a primary key names ID.The Users table has a nullable column DefaultAirportID which is a fk to the ID of the Airports[详细]
2023-02-18 03:44 分类:问答How to eager load child entities using repository pattern
I have an entity named Tour which can have many Agents. I am able to add agents, but I cannot remove them.[详细]
2023-02-17 19:38 分类:问答Entity Framework CTP5 Repository + Unit of Work for winform
I want to 开发者_开发知识库build a windosform application using Repository and Unit of Work pattern.[详细]
2023-02-17 11:12 分类:问答Entity Framework Code First: How can I create a One-to-Many AND a One-to-One relationship between two tables?
Here is my Model: public class Customer { public int ID { get; set; } public int MailingAddressID { get; set; }[详细]
2023-02-17 08:22 分类:问答