📅  最后修改于: 2022-03-11 14:48:49.602000             🧑  作者: Mango
var items = from c in contacts
select new ListItem
{
Value = SqlFunctions.StringConvert((double)c.ContactId).Trim(),
Text = c.Name
};