if (ma.Expression.Type == ObjectType)
if (ma.Expression.Type == ObjectType || (InheritanceMapping != null && InheritanceMapping.Any(im => im.Type == ma.Expression.Type)))