EF4.1 Exception creating Database with table-per-hierarchy inheritance
I have created a very simple project to demonstrate table-per-hierarchy inhertiance. In my unit test which tries to generate the database, i get one of a number of errors depending on the config: without the Required() method Map<InActiveUser>(x => x.Requires("IsActive").HasValue(false)); Map<ActiveUser>(x => x.Requires("IsActive").HasValue(true)); delivers: System.Data.DataException : An exception occurred while initializing the database. See the InnerException for details. ----> System.Data.EntityCommandCompilationException : An error occurred while preparing the command definition. See the