firstOrNew method

Future<TRow> firstOrNew(
  1. MssqlCondition where,
  2. TRow build()
)

firstOrCreate without the insert: the row, or build's unsaved one.

Implementation

Future<TRow> firstOrNew(MssqlCondition where, TRow Function() build) async =>
    await firstWhere(where) ?? build();