次のクエリを実行しようとしています(.StartsWithに注意してください)。
return (from p in _session.Linq<Profile>()
where (p.Firstname + " " + p.Lastname).StartsWith(wildcard)
select p).ToList();
これはスローします:プロパティを解決できませんでした:Firstname.Lastname。
私がこれを行う場合:
return (from p in _session.Linq<Profile>()
where p.Firstname.StartsWith(wildcard)
select p).ToList();
すべてが機能しています。どうすればいいの?
前もって感謝します!