Make sure that your entity and mapping classes are public
. Properties for your entities i.e. database fields should be public virtual
.
Also try specifying the assembly of a mapping class instead of using GetExecutingAssembly()
, I do vaguely recall experiencing trouble with it when I tried setting up FNH for the first time.
.Mappings(x => x.FluentMappings.AddFromAssemblyOf<CardMap>())