Top "Entity-framework-ctp5" questions

This tag is for the ADO.

How to use DbContext.Database.SqlQuery<TElement>(sql, params) with stored procedure? EF Code First CTP5

I have a stored procedure that has three parameters and I've been trying to use the following to return the …

c# sql ado.net linq-to-entities entity-framework-ctp5
in entity framework code first, how to use KeyAttribute on multiple columns

I'm creating a POCO model to use with entity framework code first CTP5. I'm using the decoration to make a …

entity-framework code-first entity-framework-ctp5
Refresh entity instance with DbContext

With EF4 CTP5 DbContext, what is the equivalent of this public void Refresh(Document instance) { _ctx.Refresh(RefreshMode.StoreWins, instance); } …

entity-framework-4 entity-framework-ctp5 ef-code-first
EF Code First - Include(x => x.Properties.Entity) a 1 : Many association

Given a EF-Code First CTP5 entity layout like: public class Person { ... } which has a collection of: public class Address { ... } which …

c#-4.0 entity-framework-ctp5 ef-code-first
Generate money type fields using code first EF CTP5

In this blog post: EF4 Code First Control Unicode and Decimal Precision, Scale with Attributes, Dane Morgridge used attributes to …

entity-framework ef-code-first entity-framework-ctp5
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; } …

entity-framework-4 entity-framework-ctp5 cascading-deletes
using Guid as PK with EF4 Code First

I have this class and table: public class Foo { public Guid Id {get;set;} public string Name {get;set;} } create …

entity-framework-4 code-first entity-framework-ctp5 ef4-code-only
Using mvc-mini-profiler database profiling with Entity Framework Code First

I'm using the mvc-mini-profiler in my project built with ASP.Net MVC 3 and Entity Framework code-first. Everything works great until …

ef-code-first entity-framework-ctp5 mvc-mini-profiler
Can I access the discriminator value in TPH mapping with Entity Framework 4 CTP5

Using Entity Framework 4 CTP5 Code First and this example Is it possible to access the discriminator value? I would like …

entity-framework-4 code-first entity-framework-ctp5