Show / Hide Table of Contents

    Class FibulaInMemoryDatabaseContext

    Class that represents a context for an in-memory database.

    Inheritance
    System.Object
    Microsoft.EntityFrameworkCore.DbContext
    FibulaInMemoryDatabaseContext
    Implements
    System.IDisposable
    System.IAsyncDisposable
    Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>
    Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
    Microsoft.EntityFrameworkCore.Internal.IDbSetCache
    Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
    Microsoft.EntityFrameworkCore.Infrastructure.IResettableService
    IFibulaDbContext
    Inherited Members
    Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbSetCache.GetOrAddSet(Microsoft.EntityFrameworkCore.Internal.IDbSetSource, System.Type)
    Microsoft.EntityFrameworkCore.DbContext.Set<TEntity>()
    Microsoft.EntityFrameworkCore.DbContext.Query<TQuery>()
    Microsoft.EntityFrameworkCore.DbContext.OnConfiguring(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder)
    Microsoft.EntityFrameworkCore.DbContext.SaveChanges()
    Microsoft.EntityFrameworkCore.DbContext.SaveChanges(System.Boolean)
    Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(System.Threading.CancellationToken)
    Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(System.Boolean, System.Threading.CancellationToken)
    Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetPool(Microsoft.EntityFrameworkCore.Internal.IDbContextPool)
    Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SnapshotConfiguration()
    Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.Resurrect(Microsoft.EntityFrameworkCore.Internal.DbContextPoolConfigurationSnapshot)
    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.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
    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: Fibula.Data.InMemoryDatabase
    Assembly: Fibula.Data.InMemoryDatabase.dll
    Syntax
    public class FibulaInMemoryDatabaseContext : DbContext, IDisposable, IAsyncDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IFibulaDbContext

    Constructors

    | Improve this Doc View Source

    FibulaInMemoryDatabaseContext(DbContextOptions<FibulaInMemoryDatabaseContext>)

    Initializes a new instance of the FibulaInMemoryDatabaseContext class.

    Declaration
    public FibulaInMemoryDatabaseContext(DbContextOptions<FibulaInMemoryDatabaseContext> options)
    Parameters
    Type Name Description
    Microsoft.EntityFrameworkCore.DbContextOptions<FibulaInMemoryDatabaseContext> options

    The options to initialize this context with.

    Properties

    | Improve this Doc View Source

    Accounts

    Gets or sets the set of accounts.

    Declaration
    public DbSet<AccountEntity> Accounts { get; set; }
    Property Value
    Type Description
    Microsoft.EntityFrameworkCore.DbSet<AccountEntity>
    | Improve this Doc View Source

    Characters

    Gets or sets the set of characters.

    Declaration
    public DbSet<CharacterEntity> Characters { get; set; }
    Property Value
    Type Description
    Microsoft.EntityFrameworkCore.DbSet<CharacterEntity>

    Methods

    | Improve this Doc View Source

    AsDbContext()

    Gets this context as the Microsoft.EntityFrameworkCore.DbContext.

    Declaration
    public DbContext AsDbContext()
    Returns
    Type Description
    Microsoft.EntityFrameworkCore.DbContext

    This instance casted as Microsoft.EntityFrameworkCore.DbContext.

    | Improve this Doc View Source

    OnModelCreating(ModelBuilder)

    Declaration
    protected override void OnModelCreating(ModelBuilder modelBuilder)
    Parameters
    Type Name Description
    Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder
    Overrides
    Microsoft.EntityFrameworkCore.DbContext.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder)

    Implements

    System.IDisposable
    System.IAsyncDisposable
    Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<T>
    Microsoft.EntityFrameworkCore.Internal.IDbContextDependencies
    Microsoft.EntityFrameworkCore.Internal.IDbSetCache
    Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable
    Microsoft.EntityFrameworkCore.Infrastructure.IResettableService
    IFibulaDbContext

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.