getById method

Future<TRow> getById(
  1. TKey key, {
  2. List<MssqlRelation<TRow, Object?>> include = const [],
})

The row with this key, or throws MssqlRowNotFoundException.

Implementation

Future<TRow> getById(
  TKey key, {
  List<MssqlRelation<TRow, Object?>> include = const [],
}) async {
  final row = await findById(key, include: include);
  if (row == null) {
    throw MssqlRowNotFoundException(binding.qualifiedName, key);
  }
  return row;
}