ServiceStack.Ormlite Postgres 不区分大小写的查询
ServiceStack.Ormlite Postgres case insensitive queries
我希望干净地实现一种机制来覆盖所有比较字符串的 where 子句以执行以下操作
[列].Value.ToLower() == SqlParam.ToLower()
有效克服 Postgres 区分大小写的问题。
OrmLite 的 INamingStrategy allows you to customize how Schemas, Tables and Columns are named and OrmLite's PostgreSQL Provider is already configured to use the PostgreSqlNamingStrategy 将 .NET 的 PascalCase 名称转换为 PostgreSQL 友好的 snake_case.
我希望干净地实现一种机制来覆盖所有比较字符串的 where 子句以执行以下操作
[列].Value.ToLower() == SqlParam.ToLower()
有效克服 Postgres 区分大小写的问题。
OrmLite 的 INamingStrategy allows you to customize how Schemas, Tables and Columns are named and OrmLite's PostgreSQL Provider is already configured to use the PostgreSqlNamingStrategy 将 .NET 的 PascalCase 名称转换为 PostgreSQL 友好的 snake_case.