Class ReadOnlyDbContext
Inheritance
System.Object
Microsoft.EntityFrameworkCore.DbContext
ReadOnlyDbContext
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
System.IDisposable
System.IAsyncDisposable
Microsoft.EntityFrameworkCore.Infrastructure.IResettableService
Inherited Members
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbSetCache.GetOrAddSet(Microsoft.EntityFrameworkCore.Internal.IDbSetSource, System.Type)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbSetCache.GetOrAddSet(Microsoft.EntityFrameworkCore.Internal.IDbSetSource, System.String, System.Type)
Microsoft.EntityFrameworkCore.DbContext.Set<TEntity>()
Microsoft.EntityFrameworkCore.DbContext.Set<TEntity>(System.String)
Microsoft.EntityFrameworkCore.DbContext.OnConfiguring(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder)
Microsoft.EntityFrameworkCore.DbContext.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.ClearLease()
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetLease(Microsoft.EntityFrameworkCore.Internal.DbContextLease)
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SnapshotConfiguration()
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IResettableService.ResetState()
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IResettableService.ResetStateAsync(System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Dispose()
Microsoft.EntityFrameworkCore.DbContext.DisposeAsync()
Microsoft.EntityFrameworkCore.DbContext.Entry<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Entry(System.Object)
Microsoft.EntityFrameworkCore.DbContext.Add<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.AddAsync<TEntity>(TEntity, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Attach<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Update<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Remove<TEntity>(TEntity)
Microsoft.EntityFrameworkCore.DbContext.Add(System.Object)
Microsoft.EntityFrameworkCore.DbContext.AddAsync(System.Object, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Attach(System.Object)
Microsoft.EntityFrameworkCore.DbContext.Update(System.Object)
Microsoft.EntityFrameworkCore.DbContext.Remove(System.Object)
Microsoft.EntityFrameworkCore.DbContext.AddRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.AddRangeAsync(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.UpdateRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.RemoveRange(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.AddRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.AddRangeAsync(System.Collections.Generic.IEnumerable<System.Object>, System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.UpdateRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.RemoveRange(System.Collections.Generic.IEnumerable<System.Object>)
Microsoft.EntityFrameworkCore.DbContext.Find(System.Type, System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync(System.Type, System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync(System.Type, System.Object[], System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.Find<TEntity>(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync<TEntity>(System.Object[])
Microsoft.EntityFrameworkCore.DbContext.FindAsync<TEntity>(System.Object[], System.Threading.CancellationToken)
Microsoft.EntityFrameworkCore.DbContext.FromExpression<TResult>(System.Linq.Expressions.Expression<System.Func<System.Linq.IQueryable<TResult>>>)
Microsoft.EntityFrameworkCore.DbContext.Database
Microsoft.EntityFrameworkCore.DbContext.ChangeTracker
Microsoft.EntityFrameworkCore.DbContext.Model
Microsoft.EntityFrameworkCore.DbContext.ContextId
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.SetSource
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.EntityFinderFactory
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.QueryProvider
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.StateManager
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.ChangeDetector
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.EntityGraphAttacher
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.UpdateLogger
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies.InfrastructureLogger
Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.Instance
Microsoft.EntityFrameworkCore.DbContext.SavingChanges
Microsoft.EntityFrameworkCore.DbContext.SavedChanges
Microsoft.EntityFrameworkCore.DbContext.SaveChangesFailed
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: JK.Common.EntityFrameworkCore
Assembly: JK.Common.EntityFrameworkCore.dll
Syntax
public abstract class ReadOnlyDbContext : DbContext, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IDisposable, IAsyncDisposable, IResettableService
Constructors
| Improve this Doc View SourceReadOnlyDbContext()
Declaration
protected ReadOnlyDbContext()
ReadOnlyDbContext(DbContextOptions)
Declaration
protected ReadOnlyDbContext(DbContextOptions options)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContextOptions | options |
Methods
| Improve this Doc View SourceSaveChanges()
Declaration
public override int SaveChanges()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Microsoft.EntityFrameworkCore.DbContext.SaveChanges()
|
Improve this Doc
View Source
SaveChanges(Boolean)
Declaration
public override int SaveChanges(bool acceptAllChangesOnSuccess)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | acceptAllChangesOnSuccess |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Microsoft.EntityFrameworkCore.DbContext.SaveChanges(System.Boolean)
|
Improve this Doc
View Source
SaveChangesAsync(Boolean, CancellationToken)
Declaration
public override Task<int> SaveChangesAsync(bool acceptAllChangesOnSuccess, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | acceptAllChangesOnSuccess | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> |
Overrides
Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(System.Boolean, System.Threading.CancellationToken)
|
Improve this Doc
View Source
SaveChangesAsync(CancellationToken)
Declaration
public override Task<int> SaveChangesAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> |
Overrides
Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(System.Threading.CancellationToken)
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<T>
Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
Microsoft.EntityFrameworkCore.Internal.IDbSetCache
Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
System.IDisposable
System.IAsyncDisposable
Microsoft.EntityFrameworkCore.Infrastructure.IResettableService