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.
我正在使用 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();
这可能是您想要的:http: //blog.schuager.com/2009/06/case-sensitive-queries-in-nhibernate.html