applyServerGeneratedIdToEntity method

  1. @override
StockModel applyServerGeneratedIdToEntity(
  1. StockModel entity,
  2. String serverGeneratedId,
  3. int rowVersion
)
override

Implementation

@override
StockModel applyServerGeneratedIdToEntity(
  StockModel entity,
  String serverGeneratedId,
  int rowVersion,
) =>
    entity.copyWith(
      id: serverGeneratedId,
      rowVersion: rowVersion,
    );