DbResult<T> class
操作结果
- Inheritance
-
- Object
- DbBaseModel
- DbResult
Constructors
Properties
- deletedCount → int
-
删除的数量
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- insertedCount → int
-
插入的数量
final
- matchedCount → int
-
匹配的数量
final
- message → String
-
操作成功或失败的描述情况
final
- modifiedCount → int
-
修改的数量
final
- rescode → int
-
操作结果状态(-1表示抛出异常,>=0表示匹配的操作对象的数量)
final
- result → T?
-
转换后的操作结果
final
- resultData → Object?
-
转换前操作结果的原始数据
final
-
resultList
→ List<
T> ? -
转换后的操作结果列表
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
操作是否成功
final
- upsertedCount → int
-
更新或插入的数量
final
Methods
-
buildTarget(
) → dynamic -
使用本实例字段成员的值生成包装的目标类实例
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
转换为基本数据类型的Map。转换结果可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库
override
-
toKValues(
) → Map< String, dynamic> -
转换为用字符串key读取字段值的Map
inherited
-
toString(
) → String -
jsonEncode(this)抛出的异常被吃掉了,所以需要写成jsonEncode(toJson())
inherited
-
updateByJson(
Map< String, dynamic> map) → void -
通过基本数据类型的Map来更新字段。来源
map
可以直接使用jsonEncode进行序列化,可以直接保存到mongo数据库inherited -
updateByKValues(
Map< String, dynamic> map) → void -
通过用字符串key读取字段值的Map来更新字段
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited