风轻云淡

-------生活没有抱怨,只有自己的不努力,当才华撑不起梦想与野心,不断学习是你唯一的选择。没有伞的孩子必须努力奔跑...

导航

2020年3月17日 #

The instance of entity type 'XXX' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked

摘要: EF Core 修改实例报错:==》》 System.InvalidOperationException: The instance of entity type 'ProductInfo' cannot be tracked because another instance with the sa 阅读全文

posted @ 2020-03-17 15:42 淡然→笑 阅读(1690) 评论(0) 推荐(1)

2020年3月16日 #

VS2017 无法连接到Web服务器 IIS Express ,IIS Express可以启动,但是无法连接

摘要: 可能是360杀毒、等等杀毒软件 阻止了 vs2017 启动 iisExpress程序 可以尝试关闭杀毒软件 阅读全文

posted @ 2020-03-16 14:01 淡然→笑 阅读(170) 评论(0) 推荐(0)

2020年3月12日 #

VS2017 无法连接到Web服务器 IIS Express ,IIS Express可以启动,但是无法连接

摘要: VS2017 无法连接到Web服务器 IIS Express ,IIS Express可以启动,但是无法连接 阅读全文

posted @ 2020-03-12 11:20 淡然→笑 阅读(493) 评论(0) 推荐(0)

2020年2月28日 #

ADO.Net实体数据模型添加DB-First/Code First报错

摘要: Authentication method 'caching_sha2_password' not supported by any of the available plugins. 解决办法: 1、输入命令 mysql -u root -p 连接mysql C:\mysql-8.0.19-win 阅读全文

posted @ 2020-02-28 14:25 淡然→笑 阅读(278) 评论(0) 推荐(0)

VS2017+EF6+MySQL8.0配置(.Net Framework 4.5)

摘要: 开发环境Vs2017 运行环境:.Net Framework 4.5(win7专业版 64位) 1、下载安装mysql数据库版本:mysql-8.0.19-winx64 数据库版本貌似跟MySQL Connector Net不需要版本对应 mysql安装步骤网上查找一下,我的数据库配置了环境变量,不 阅读全文

posted @ 2020-02-28 14:07 淡然→笑 阅读(2000) 评论(0) 推荐(0)

2020年1月4日 #

C#对象、List<>转DataTable

摘要: public static DataTable ObjectToTable(object obj) { try { Type t; if (obj.GetType().IsGenericType) { t = obj.GetType().GetGenericTypeDefinition(); } e 阅读全文

posted @ 2020-01-04 13:12 淡然→笑 阅读(3720) 评论(0) 推荐(1)