07 2021 档案

摘要:具体报错:The instance of entity type 'XXXX' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked. When a 阅读全文
posted @ 2021-07-29 11:36 Miskey_Fu 阅读(2639) 评论(0) 推荐(0)
摘要:我们在处理对象集合的时候,难免会遇到两个对象的比较,今天给大家可以自定义的判断比较两个对象,方法就是实现IEqualityComparer。 废话不多说,程序员就是撸起袖子加油干,上代码: using System; using System.Collections.Generic; using S 阅读全文
posted @ 2021-07-27 17:58 Miskey_Fu 阅读(492) 评论(0) 推荐(0)