Don’t use classes with the same unqualified name – EF uses only class names to identify the type mapped in EDMX (namespaces are ignored) – it is a convention to allow mapping classes from different namespaces to single model. The solution for your problem is to name your classes in BLL differently.
More Related Contents:
- There is already an open DataReader associated with this Command which must be closed first
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details [duplicate]
- Entity Framework Join 3 Tables
- Entity Framework Timeouts
- EF Including Other Entities (Generic Repository pattern)
- Entity Framework/Linq EXpression converting from string to int
- LEFT JOIN in LINQ to entities?
- The result of a query cannot be enumerated more than once
- Does Entity Framework 4 Code First have support for identity generators like NHibernate?
- Entity Framework Code First Lazy Loading
- Entity Framework – Add Navigation Property Manually
- Internal .NET Framework Data Provider error 1025
- Entity Framework Include() is not working
- Creating dynamic queries with entity framework
- Better way to query a page of data and get total count in entity framework 4.1?
- Entity Framework Code Only error: the model backing the context has changed since the database was created
- EF4 Code First: how to add a relationship without adding a navigation property
- Entity Framework 4: How to find the primary key?
- How to Refresh DbContext
- Is it possible to prevent EntityFramework 4 from overwriting customized properties?
- Change db table name in EF4 (entity framework 4)
- Entity Framework Multiple Object Contexts
- Entity Framework Code First naming conventions – back to plural table names?
- Repository Pattern, POCO, and Business Entities
- How to compare only Date without Time in DateTime types in Linq to SQL with Entity Framework?
- Navigation Property without Declaring Foreign Key
- MySQL Entity Framework Error – The specified store provider cannot be found in the configuration, or is not valid
- Global setting for AsNoTracking()?
- EF models. Navigation properties can only participate in a single relationship
- Seed Entities AND Users, Roles?