网站首页
编程语言
数据库
系统相关
其他分享
编程问答
FeeItems
2024-10-08
blazor得到单值或两个字段的表的方法
linq经常生成临时表,办法如下1、得到单值 privateList<string>FeeItems;采用linq查询,例如FeeItems=_context.表.Where(x=>x.年==CurrYear).OrderBy(s=>s.ItemId).Select(s=>s.ItemId).ToList();读值:项目<InputSelect@bind-Value="SelectedItemID">