bulkCreate method
Implementation
@override
FutureOr<void> bulkCreate(
List<ProjectBeneficiaryModel> entities,
) async {
return retryLocalCallOperation(() async {
final projectBeneficiaryCompanions =
entities.map((e) => e.companion).toList();
await sql.batch((batch) async {
batch.insertAll(
sql.projectBeneficiary,
projectBeneficiaryCompanions,
mode: InsertMode.insertOrReplace,
);
});
});
}