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

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

Pomelo.EntityFrameworkCore.MySql 库即可解决

猜你喜欢

转载自www.cnblogs.com/yeqifeng2288/p/10727226.html