Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个 :
DbModal.SM_SYS_Globals.First(x => x.ObjectValue.Contains("To"))
有错误:
Expression cannot contain lambda expressions
改用以下内容
DbModal.SM_SYS_Globals.Where(x => x.ObjectValue.Contains("To")).First()