摘要:
The instance of entity type 'Book' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked...这个问题的原因与解决方法。更新与查询所属的上下文实例不一样,更新的写法也不一样。 阅读全文
摘要:
EntityFrameworkCore的日志出力设置方法,官网只提供了Asp.net Core与.net core 应用的配置。没有WPF类系统的配置,本章作为一个补充。简单介绍了一个基于Prism开发框架的WPF应用,如何配置EntityFrameworkCore日志到Nlog。 阅读全文