随笔分类 - EF Code First
摘要:Enumerable.Distinct<TSource> Method(IEnumerable<TSource>, IEqualityComparer<TSource>) 也就是使用的Distinct(参数1,参数2); 参数1为原数据,参数2为比较数据 通过IEqualityComparer<T>
阅读全文
摘要://判断右表是否为空并为映射表进行赋值标志var query=from q in product join m in favProduct on q.Name equals m.Name into t from x in t.DefalultEmpty() select new { Name=q.N
阅读全文
摘要:程序控制台出现 already exist Table "xxx",是由于项目中的Migrations(迁移文件)与连接的mysql数据库里迁移记录表里的数量及名称不一致。
阅读全文