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