save method

Future<int> save({
  1. SaveOptions? saveOptions,
})

Implementation

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

  return this
      .repository
      .saveOne(entity: this.data as T, database: this.database);
}