servicestack - ServiceStack OrmLite 中 QueryById() 和 GetById() 的区别

标签 servicestack ormlite-servicestack

任何人都可以解释 QueryById() 和 GetById() 之间的区别,因为它们都具有相同的签名。并且有许多以 Query 和 Get 开头的常见函数,可能有一些我认为我遗漏的主要区别。

最佳答案

OrmLite的 QueryById 和任何 API 开始 Query*Where*或以 *Param 结尾在幕后使用参数化查询,而其他一切都没有。

更多内容在 OrmLite 的项目主页上的文档中进行了解释:

https://github.com/ServiceStack/ServiceStack.OrmLite/

关于servicestack - ServiceStack OrmLite 中 QueryById() 和 GetById() 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15392508/

相关文章:

postgresql - 使用时间跨度查询的问题

servicestack - protobuf-net 嵌套类支持 ?订单注释?

c# - 如何将 SqlAzure 重试逻辑添加到 OrmLite 操作?

c# - OrmLite for ServiceStack 3 不支持可空枚举属性?

android - 在 Xamarin.Android 应用程序的情况下使用的 ORMLite 等效包是什么

c# - ServiceStack.OrmLite.Sqlite.Core 无法加载正确的 Sqlite DLL

redis - 服务栈.Redis.RedisResponseException : unknown command 'SCAN'

ServiceStack.ORMLite HI/LO 算法

servicestack - 使用参数调用存储过程时出现 SqlScalar<T> 和 SqlList<T> 问题