直接上代码
//获取一次所有的宝贝信息 var skus = from i in _dbContext.ItemInfos join s in _dbContext.SkuInfos on i.ItemId equals s.ItemId into temp from t in temp.DefaultIfEmpty() select new { SkuCode = (t == null ? i.ItemCode : t.SkuCode), ItemName = i.ItemName, };
时间: 2024-10-23 04:04:51