摘要: var customers = await _db.Db.Queryable<Customer>() .Where(a => projectNumberIds.Contains(a.Id)) .Select(a => new { a.Id, a.Name }).ToListAsync(); var 阅读全文
posted @ 2025-06-13 11:57 龙猫•ᴥ• 阅读(9) 评论(0) 推荐(0)
摘要: List<int> codes = item.ProductCodes.Split(",") .Select(a => int.TryParse(a, out int code) ? code : 0) .Where(code => code > 0).ToList(); 阅读全文
posted @ 2025-06-13 11:52 龙猫•ᴥ• 阅读(18) 评论(0) 推荐(0)