efcore操作mysql,出现System.InvalidOperationException:“No coercion operator is defined between types 'System.Int16' and 'System.Boolean'.”

这个恶心的问题,只需要把EF的依赖换成

Pomelo.EntityFrameworkCore.MySql 库即可解决

posted @ 2019-04-18 00:43  指左转右  阅读(1032)  评论(0编辑  收藏  举报