随笔分类 -  .Net Core

c# Api 错误 Unable to resolve service for type ' ' while attempting to activate ' '
摘要:.net8 中提示 以上错误增加了 builder.Services.AddScoped<IFlowCoefficient, FlowCoefficientManageService>(); 仍无效 提示错误 改为 builder.Services.AddScoped(typeof(FlowCoef 阅读全文
posted @ 2024-03-28 22:30 滢枫 阅读(632) 评论(0) 推荐(0)
ef8 Contains 查询条件 报错 $ 附近错误
摘要:var info = new List<string>(); ef 查询语句 query.Where(x => info .Contains(x.Barcode)) 报错 $ 附近错误 这是 ef 为了兼容 ,把查询语句转成了 类似下方语句 where barcode in( SELECT 1 FR 阅读全文
posted @ 2024-03-28 22:27 滢枫 阅读(160) 评论(0) 推荐(0)