I'm trying to generate a Generic Repository. So far, so good. But I get the same error as somebody else posted before: Mapping to a nested class
The problem is that I am apparently trying to map a nested class. How can I fix this, so I do not map a nested class anymore?
EDIT: That should not be the problem.
namespace MvcApplication1.Models
{
public class MyContext :DbContext
{
public DbSet<ALBUM> Albums { get; set; }
...
}
}
where for example ALBUM:
[EdmEntityTypeAttribute(NamespaceName="MyDbModel", Name="ALBUM")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class ALBUM : EntityObject
Why is the class ALBUM not allowed to map?