workaround 'can not adapt to IPrimaryFieldInfo' issue