Interface IEfCoreDbContext
Assembly: Volo.Abp.EntityFrameworkCore.dll
Syntax
public interface IEfCoreDbContext : IDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IAsyncDisposable
Properties
ChangeTracker
Declaration
ChangeTracker ChangeTracker { get; }
Property Value
Type |
Description |
ChangeTracker |
|
Database
Declaration
DatabaseFacade Database { get; }
Property Value
Type |
Description |
DatabaseFacade |
|
Methods
Add(object)
Declaration
EntityEntry Add(object entity)
Parameters
Type |
Name |
Description |
object |
entity |
|
Returns
Type |
Description |
EntityEntry |
|
AddAsync(object, CancellationToken)
Declaration
ValueTask<EntityEntry> AddAsync(object entity, CancellationToken cancellationToken = default)
Parameters
Returns
AddAsync<TEntity>(TEntity, CancellationToken)
Declaration
ValueTask<EntityEntry<TEntity>> AddAsync<TEntity>(TEntity entity, CancellationToken cancellationToken = default) where TEntity : class
Parameters
Returns
Type |
Description |
ValueTask<EntityEntry<TEntity>> |
|
Type Parameters
AddRange(IEnumerable<object>)
Declaration
void AddRange(IEnumerable<object> entities)
Parameters
AddRange(params object[])
Declaration
void AddRange(params object[] entities)
Parameters
Type |
Name |
Description |
object[] |
entities |
|
AddRangeAsync(IEnumerable<object>, CancellationToken)
Declaration
Task AddRangeAsync(IEnumerable<object> entities, CancellationToken cancellationToken = default)
Parameters
Returns
AddRangeAsync(params object[])
Declaration
Task AddRangeAsync(params object[] entities)
Parameters
Type |
Name |
Description |
object[] |
entities |
|
Returns
Add<TEntity>(TEntity)
Declaration
EntityEntry<TEntity> Add<TEntity>(TEntity entity) where TEntity : class
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
EntityEntry<TEntity> |
|
Type Parameters
Attach(object)
Declaration
EntityEntry Attach(object entity)
Parameters
Type |
Name |
Description |
object |
entity |
|
Returns
Type |
Description |
EntityEntry |
|
AttachRange(IEnumerable<object>)
Declaration
void AttachRange(IEnumerable<object> entities)
Parameters
AttachRange(params object[])
Declaration
void AttachRange(params object[] entities)
Parameters
Type |
Name |
Description |
object[] |
entities |
|
Attach<TEntity>(TEntity)
Declaration
EntityEntry<TEntity> Attach<TEntity>(TEntity entity) where TEntity : class
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
EntityEntry<TEntity> |
|
Type Parameters
Entry(object)
Declaration
EntityEntry Entry(object entity)
Parameters
Type |
Name |
Description |
object |
entity |
|
Returns
Type |
Description |
EntityEntry |
|
Entry<TEntity>(TEntity)
Declaration
EntityEntry<TEntity> Entry<TEntity>(TEntity entity) where TEntity : class
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
EntityEntry<TEntity> |
|
Type Parameters
Find(Type, params object[])
Declaration
object? Find(Type entityType, params object[] keyValues)
Parameters
Type |
Name |
Description |
Type |
entityType |
|
object[] |
keyValues |
|
Returns
FindAsync(Type, params object[])
Declaration
ValueTask<object?> FindAsync(Type entityType, params object[] keyValues)
Parameters
Type |
Name |
Description |
Type |
entityType |
|
object[] |
keyValues |
|
Returns
FindAsync(Type, object[], CancellationToken)
Declaration
ValueTask<object?> FindAsync(Type entityType, object[] keyValues, CancellationToken cancellationToken)
Parameters
Returns
FindAsync<TEntity>(params object[])
Declaration
ValueTask<TEntity?> FindAsync<TEntity>(params object[] keyValues) where TEntity : class
Parameters
Type |
Name |
Description |
object[] |
keyValues |
|
Returns
Type Parameters
FindAsync<TEntity>(object[], CancellationToken)
Declaration
ValueTask<TEntity?> FindAsync<TEntity>(object[] keyValues, CancellationToken cancellationToken) where TEntity : class
Parameters
Returns
Type Parameters
Find<TEntity>(params object[])
Declaration
TEntity? Find<TEntity>(params object[] keyValues) where TEntity : class
Parameters
Type |
Name |
Description |
object[] |
keyValues |
|
Returns
Type Parameters
Remove(object)
Declaration
EntityEntry Remove(object entity)
Parameters
Type |
Name |
Description |
object |
entity |
|
Returns
Type |
Description |
EntityEntry |
|
RemoveRange(IEnumerable<object>)
Declaration
void RemoveRange(IEnumerable<object> entities)
Parameters
RemoveRange(params object[])
Declaration
void RemoveRange(params object[] entities)
Parameters
Type |
Name |
Description |
object[] |
entities |
|
Remove<TEntity>(TEntity)
Declaration
EntityEntry<TEntity> Remove<TEntity>(TEntity entity) where TEntity : class
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
EntityEntry<TEntity> |
|
Type Parameters
SaveChanges()
Declaration
Returns
SaveChanges(bool)
Declaration
int SaveChanges(bool acceptAllChangesOnSuccess)
Parameters
Type |
Name |
Description |
bool |
acceptAllChangesOnSuccess |
|
Returns
SaveChangesAsync(bool, CancellationToken)
Declaration
Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = default)
Parameters
Returns
SaveChangesAsync(CancellationToken)
Declaration
Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)
Parameters
Returns
SaveChangesOnDbContextAsync(bool, CancellationToken)
Declaration
Task<int> SaveChangesOnDbContextAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = default)
Parameters
Returns
Set<T>()
Declaration
DbSet<T> Set<T>() where T : class
Returns
Type |
Description |
DbSet<T> |
|
Type Parameters
Update(object)
Declaration
EntityEntry Update(object entity)
Parameters
Type |
Name |
Description |
object |
entity |
|
Returns
Type |
Description |
EntityEntry |
|
UpdateRange(IEnumerable<object>)
Declaration
void UpdateRange(IEnumerable<object> entities)
Parameters
UpdateRange(params object[])
Declaration
void UpdateRange(params object[] entities)
Parameters
Type |
Name |
Description |
object[] |
entities |
|
Update<TEntity>(TEntity)
Declaration
EntityEntry<TEntity> Update<TEntity>(TEntity entity) where TEntity : class
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
EntityEntry<TEntity> |
|
Type Parameters
Extension Methods