BaseDao<T> class
abstract
Constructors
- BaseDao()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
[T? entity]) → Future< bool> - 根据条件删除数据,不传表示删除所有数据
-
getById(
dynamic id) → Future< T?> - 根据主键查询数据
-
getFirstOrNull(
T entity) → Future< T?> - 根据查询条件获取查到的第一个值
-
getList(
[T? entity]) → Future< List< T?> > - 根据设置的条件查询数据,不传表示获取所有数据
-
insertOrUpdate(
T entity) → Future< bool> - 插入一条数据,如果主键存在就更新该条数据
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Map< String, Object> updateValues, Map<String, Object> whereArgs) → Future<int>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited