views:

20

answers:

0

I'm playing around with the EF 4.0 POCO CTP (from here).

I'm constructing an ObjectContext using the ContextBuilder class like so

context = new ContextBuilder<T>().Create(new SqlConnection(...));

T is of type ObjectContext. When I try to get a reference to all the mapped entities in the context like so:

var entities = context.MetadataWorkspace.GetItems<EntityType>(DataSpace.CSpace);

I'm getting all of my entities but with the wrong namespace. They are all namespaced with System.Data.Objects, which isn't correct. It should be MyDomain.XXX.

Any ideas? Thanks!