使用 EF 4.1 并且尝试此操作时出现错误:
db.Golfers.Where("it.Name.StartsWith('tiger')")
错误是:
"'StartsWith' is not a member of type 'Edm.String' in the currently loaded schemas. Near simple identifier, line 6, column 9." string
什么??问题是我有一个字符串作为输入,如何转换为 lambda 表达式?