insertRow method

Future<UserProfile> insertRow(
  1. Session session,
  2. UserProfile row, {
  3. Transaction? transaction,
})

Inserts a single UserProfile and returns the inserted row.

The returned UserProfile will have its id field set.

Implementation

Future<UserProfile> insertRow(
  _i1.Session session,
  UserProfile row, {
  _i1.Transaction? transaction,
}) async {
  return session.db.insertRow<UserProfile>(
    row,
    transaction: transaction,
  );
}