I have encountered an exception when I use Entity Framework 4.0 RC.
My Entity Framework model is encapsulated in a private assembly who's name is Procurement.EFDataProvider and my POCO classes are inside of another assembly Procurement.Core
The relation between Core(Business Logic)and EFDataProvider(Data Access) is with a factory named DataProvider
so when I try to create an objectset
objectSet = ObjectContext.CreateObjectSet<TEntity>();
I get an error:
Mapping and metadata information could not be found for EntityType 'Procurement.Core.Entities.OrganizationChart'.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…