After three days I finally found solution to this problem. It's not enough to have IncludeBase<T>()
. You have to map base class too. So the solution is:
AutoMap
.AssemblyOf<ABase>()
.Where(type=>type.IsSubclassOf(typeof(A)) || type==typeof(A))
.IncludeBase<A>();
I hope it will help some similar problems...