• 2024-10-08blazor得到单值或两个字段的表的方法
    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">