updateById method
Future<MethodInfo?>
updateById(
- Session session,
- int id, {
- required ColumnValueListBuilder<
MethodInfoUpdateTable> columnValues, - Transaction? transaction,
Updates a single MethodInfo by its id with the specified columnValues.
Returns the updated row or null if no row with the given id exists.
Implementation
Future<MethodInfo?> updateById(
_i1.Session session,
int id, {
required _i1.ColumnValueListBuilder<MethodInfoUpdateTable> columnValues,
_i1.Transaction? transaction,
}) async {
return session.db.updateById<MethodInfo>(
id,
columnValues: columnValues(MethodInfo.t.updateTable),
transaction: transaction,
);
}