通过传入的主键在数据集中查询实体实例, 参数的顺序为实体模型中被注解为 @primary() 的字段的顺序
class Foo { @primary() id: number = 0 @primary() version: number = 0 } ctx.foo.find(1, 2) // 参数 1 作为id, 参数 2 作为version
主键字段
Generated using TypeDoc
通过传入的主键在数据集中查询实体实例, 参数的顺序为实体模型中被注解为 @primary() 的字段的顺序
class Foo { @primary() id: number = 0 @primary() version: number = 0 } ctx.foo.find(1, 2) // 参数 1 作为id, 参数 2 作为version