#if net40 #else using FreeSql.Extensions.EntityUtil; using FreeSql.Internal; using FreeSql.Internal.Model; using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading; using System.Threading.Tasks; namespace FreeSql { partial class AggregateRootRepository { public Task InsertAsync(TEntity entity, CancellationToken cancellationToken = default) => _repository.InsertAsync(entity, cancellationToken); public Task> InsertAsync(IEnumerable entitys, CancellationToken cancellationToken = default) => _repository.InsertAsync(entitys, cancellationToken); public Task InsertOrUpdateAsync(TEntity entity, CancellationToken cancellationToken = default) => _repository.InsertOrUpdateAsync(entity, cancellationToken); public Task SaveManyAsync(TEntity entity, string propertyName, CancellationToken cancellationToken = default) => _repository.SaveManyAsync(entity, propertyName, cancellationToken); public Task UpdateAsync(TEntity entity, CancellationToken cancellationToken = default) => _repository.UpdateAsync(entity, cancellationToken); public Task UpdateAsync(IEnumerable entitys, CancellationToken cancellationToken = default) => _repository.UpdateAsync(entitys, cancellationToken); public Task DeleteAsync(TEntity entity, CancellationToken cancellationToken = default) => _repository.DeleteAsync(entity, cancellationToken); public Task DeleteAsync(IEnumerable entitys, CancellationToken cancellationToken = default) => _repository.DeleteAsync(entitys, cancellationToken); public Task DeleteAsync(Expression> predicate, CancellationToken cancellationToken = default) => _repository.DeleteAsync(predicate, cancellationToken); public Task> DeleteCascadeByDatabaseAsync(Expression> predicate, CancellationToken cancellationToken = default) => _repository.DeleteCascadeByDatabaseAsync(predicate, cancellationToken); } } #endif