save method
Implementation
Future<int> save({SaveOptions? saveOptions}) async {
if (this.data is List) {
return this.repository.saveMany(
entities: this.data as List<T>,
database: this.database,
mergeMode: this._mergeMode,
saveOptions: saveOptions);
}
return this.repository.saveOne(
entity: this.data as T,
database: this.database,
mergeMode: this._mergeMode,
saveOptions: saveOptions);
}