No coercion operator is defined between types System.Int16 and System.Boolean
在webApi服务开发中遇到这样的一个问题:No coercion operator is defined between types 'System.Int16' and 'System.Boolea最后发现是在DataContext在使用Any方法时,出错;问题分析:由于在项目在添加EntityFrameworkCore.MySql的管理包时,使用的是MySql.Data.EntityFrameworkCore的版本解决方法:删除MySql.Data.EntityFramewor
原创
2020-06-04 16:37:50 ·
1229 阅读 ·
0 评论