entity-framework-ctp5
EntityFunctions.TruncateTime alternative when using EF CTP5 with Sql Server Compact Edition 4.0
I\'m using EF CTP5 code-first with Sql CE 4.0. I am trying to perform a time-insensitive date comparison between two DateTime properties.[详细]
2023-02-12 10:14 分类:问答EF4 CTP5: Extend Model via MEF Module - TPH - OnModelCreating
i am sorry to not find a better Headline. I am trying to extend a EF4 CTP5 Model via MEF Modules: The Idea is to specifiy some basic entities. Those basic entities are located next to my Context class[详细]
2023-02-12 04:05 分类:问答Entity Framework CTP5 Code-First: Mapping a class with multiple collections of another class
With EF CTP5 Code-First I am trying to map a class model which contains multiple collections in one class pointing to another class. Here is an example of what I mean:[详细]
2023-02-12 04:02 分类:问答Adding index to a table
I have a table Person: id, name I often have queries like: select * from Person where name Like \"%abc%\".[详细]
2023-02-12 02:07 分类:问答I can't see stored procedures in DbContext with POCO classes
Why I can\'t see the stored procedure added in my DbContext? Th开发者_开发问答e DbContext is generated by the template introduced with the CTP5 release (with POCO classes).[详细]
2023-02-11 17:32 分类:问答Entity Framework CTP5 Code First - Possible to do entity splitting on a non-primary key?
Using EF CTP5, I am trying to do some entity splitting where the entity is constructed from two separate tables.Is it possible to do this splitting if the key on the two tables is not the primary key?[详细]
2023-02-11 11:51 分类:问答Code First CTP5 Many To Many Binding
I have been using the Code First approach for the Entity Framework. I have an Event class, a Band class and a EventBands class which maps the many to many relationship. The Code First approach worked[详细]
2023-02-11 07:16 分类:问答Entity Framework CTP5 Code-First: How do I specify the type of the discrimimator column in Table-Per-Hierarchy Mapping?
This blog post of the ADO.NET team shows in an example how to define Table-Per-Hierarchy Mapping in the Fluent API of Entity Framework Code-First. This is the (slightly simplified) example:[详细]
2023-02-11 06:33 分类:问答Entity Framework: Set Delete Rule with CodeFirst
I am using EF4 CTP 5, CodeFirst. Please see my classes first: public class Guest { [Key] public Guid GuestID { get; set; }[详细]
2023-02-11 04:51 分类:问答Entity Framework 4 - TPH Inheritance in Features CTP5 (code first) with "IS NULL" discriminator
Hey guys, I\'m trying to create a TPH mapping on a hierarchy where the discriminating clause is the classical \"IS NOT NULL\" / \"IS NULL\" case.[详细]
2023-02-11 02:15 分类:问答