An item with the same key has already been added. Key: Pomelo.EntityFrameworkCore.MySql.Infrastructu...

An item with the same key has already been added. Key: Pomelo.EntityFrameworkCore.MySql.Infrastructure.Internal.MySqlOptionsExtension

 

An item with the same key has already been added. Key: Pomelo.EntityFrameworkCore.MySql.Infrastructure.Internal.MySqlOptionsExtension

An item with the same key has already been added. Key: Pomelo.EntityFrameworkCore.MySql.Infrastructu..._第1张图片

原因是两个地方设置了连接字符串

An item with the same key has already been added. Key: Pomelo.EntityFrameworkCore.MySql.Infrastructu..._第2张图片

An item with the same key has already been added. Key: Pomelo.EntityFrameworkCore.MySql.Infrastructu..._第3张图片

去掉一个即可

 

posted on 2019-03-14 17:40 明净 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/mingjing/p/10531795.html

你可能感兴趣的:(数据库,游戏,c#)