Stupid question: how do we specify the values of the discriminator column on EF 4.1 RTM? I’ve got this:
modelBuilder.Entity<Entity>( )
.Map<Individual>( m => m.Requires( ind => ind.EntityKind ).HasValue( 1 ) )
.Map<Company>( m => m.Requires( c => c.EntityKind ).HasValue( 2 ) );
which follows the links I’ve found about it. However, it seems like HasValue doesn’t take any parameters now. Any help on this? btw, where can I find the complete and correct docs about EF code first?
thanks.
1 Answer