mirror of https://github.com/abpframework/abp.git
committed by
GitHub
15 changed files with 698 additions and 20 deletions
@ -0,0 +1,40 @@ |
|||||
|
using System.Collections.Generic; |
||||
|
using System.Threading; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
using Volo.Abp.EntityFrameworkCore; |
||||
|
|
||||
|
namespace Volo.Abp.Domain.Repositories.EntityFrameworkCore |
||||
|
{ |
||||
|
public interface IEfCoreBulkOperationProvider |
||||
|
{ |
||||
|
Task InsertManyAsync<TDbContext, TEntity>( |
||||
|
IEfCoreRepository<TEntity> repository, |
||||
|
IEnumerable<TEntity> entities, |
||||
|
bool autoSave, |
||||
|
CancellationToken cancellationToken |
||||
|
) |
||||
|
where TDbContext : IEfCoreDbContext |
||||
|
where TEntity : class, IEntity; |
||||
|
|
||||
|
|
||||
|
Task UpdateManyAsync<TDbContext, TEntity>( |
||||
|
IEfCoreRepository<TEntity> repository, |
||||
|
IEnumerable<TEntity> entities, |
||||
|
bool autoSave, |
||||
|
CancellationToken cancellationToken |
||||
|
) |
||||
|
where TDbContext : IEfCoreDbContext |
||||
|
where TEntity : class, IEntity; |
||||
|
|
||||
|
|
||||
|
Task DeleteManyAsync<TDbContext, TEntity>( |
||||
|
IEfCoreRepository<TEntity> repository, |
||||
|
IEnumerable<TEntity> entities, |
||||
|
bool autoSave, |
||||
|
CancellationToken cancellationToken |
||||
|
) |
||||
|
where TDbContext : IEfCoreDbContext |
||||
|
where TEntity : class, IEntity; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,39 @@ |
|||||
|
using MongoDB.Driver; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Threading; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
using Volo.Abp.Domain.Repositories.MongoDB; |
||||
|
|
||||
|
namespace Volo.Abp.MongoDB.Volo.Abp.Domain.Repositories.MongoDB |
||||
|
{ |
||||
|
public interface IMongoDbBulkOperationProvider |
||||
|
{ |
||||
|
Task InsertManyAsync<TEntity>( |
||||
|
IMongoDbRepository<TEntity> repository, |
||||
|
IEnumerable<TEntity> entities, |
||||
|
IClientSessionHandle sessionHandle, |
||||
|
bool autoSave, |
||||
|
CancellationToken cancellationToken |
||||
|
) |
||||
|
where TEntity : class, IEntity; |
||||
|
|
||||
|
Task UpdateManyAsync<TEntity>( |
||||
|
IMongoDbRepository<TEntity> repository, |
||||
|
IEnumerable<TEntity> entities, |
||||
|
IClientSessionHandle sessionHandle, |
||||
|
bool autoSave, |
||||
|
CancellationToken cancellationToken |
||||
|
) |
||||
|
where TEntity : class, IEntity; |
||||
|
|
||||
|
Task DeleteManyAsync<TEntity>( |
||||
|
IMongoDbRepository<TEntity> repository, |
||||
|
IEnumerable<TEntity> entities, |
||||
|
IClientSessionHandle sessionHandle, |
||||
|
bool autoSave, |
||||
|
CancellationToken cancellationToken |
||||
|
) |
||||
|
where TEntity : class, IEntity; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue