我正在使用 Fluent NHibernate + LINQ,以及 MS SQL 2008。
我想要实现的是不区分重音的搜索,在 SQL 中它看起来像这样:
select * from people where name = 'somestring' COLLATE Latin1_General_CI_AI
是否可以这样写:
Session.Query<Person>.Where(p => p.Name == "somestring").WithCollation();
最佳答案
关于sql-server-2008 - FluentNHibernate 查询排序规则,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13859346/