Show / Hide Table of Contents

Class WMAppDbContext

Entity Framework DB Context for the application model. Note that this excludes data access required to implement the application security model, as this may be handled by an external service. See the Quantellia.WMServer.Auth namespace for further details.

Inheritance
object
DbContext
WMAppDbContext
Implements
IInfrastructure<IServiceProvider>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
IDisposable
IAsyncDisposable
Inherited Members
DbContext.Set<TEntity>()
DbContext.Set<TEntity>(string)
DbContext.OnConfiguring(DbContextOptionsBuilder)
DbContext.ConfigureConventions(ModelConfigurationBuilder)
DbContext.SaveChanges()
DbContext.SaveChanges(bool)
DbContext.SaveChangesAsync(CancellationToken)
DbContext.SaveChangesAsync(bool, CancellationToken)
DbContext.Dispose()
DbContext.DisposeAsync()
DbContext.Entry<TEntity>(TEntity)
DbContext.Entry(object)
DbContext.Add<TEntity>(TEntity)
DbContext.AddAsync<TEntity>(TEntity, CancellationToken)
DbContext.Attach<TEntity>(TEntity)
DbContext.Update<TEntity>(TEntity)
DbContext.Remove<TEntity>(TEntity)
DbContext.Add(object)
DbContext.AddAsync(object, CancellationToken)
DbContext.Attach(object)
DbContext.Update(object)
DbContext.Remove(object)
DbContext.AddRange(params object[])
DbContext.AddRangeAsync(params object[])
DbContext.AttachRange(params object[])
DbContext.UpdateRange(params object[])
DbContext.RemoveRange(params object[])
DbContext.AddRange(IEnumerable<object>)
DbContext.AddRangeAsync(IEnumerable<object>, CancellationToken)
DbContext.AttachRange(IEnumerable<object>)
DbContext.UpdateRange(IEnumerable<object>)
DbContext.RemoveRange(IEnumerable<object>)
DbContext.Find(Type, params object[])
DbContext.FindAsync(Type, params object[])
DbContext.FindAsync(Type, object[], CancellationToken)
DbContext.Find<TEntity>(params object[])
DbContext.FindAsync<TEntity>(params object[])
DbContext.FindAsync<TEntity>(object[], CancellationToken)
DbContext.FromExpression<TResult>(Expression<Func<IQueryable<TResult>>>)
DbContext.Database
DbContext.ChangeTracker
DbContext.Model
DbContext.ContextId
DbContext.SavingChanges
DbContext.SavedChanges
DbContext.SaveChangesFailed
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.App
Assembly: WMServer.dll
Syntax
public class WMAppDbContext : DbContext, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IDisposable, IAsyncDisposable

Constructors

WMAppDbContext(DbContextOptions<WMAppDbContext>)

Declaration
public WMAppDbContext(DbContextOptions<WMAppDbContext> options)
Parameters
Type Name Description
DbContextOptions<WMAppDbContext> options

Properties

ContextEmbedding

Declaration
public DbSet<WMNativeEmbedding> ContextEmbedding { get; set; }
Property Value
Type Description
DbSet<WMNativeEmbedding>

DecisionModel

Declaration
public DbSet<DecisionModelDTO> DecisionModel { get; set; }
Property Value
Type Description
DbSet<DecisionModelDTO>

DecisionModelElementDTO

Declaration
public DbSet<DecisionModelElementDTO> DecisionModelElementDTO { get; set; }
Property Value
Type Description
DbSet<DecisionModelElementDTO>

ElementRole

Declaration
public DbSet<ElementRole> ElementRole { get; set; }
Property Value
Type Description
DbSet<ElementRole>

EvaluationDTO

Declaration
public DbSet<EvaluationDTO> EvaluationDTO { get; set; }
Property Value
Type Description
DbSet<EvaluationDTO>

SimulationDTO

Declaration
public DbSet<SimulationDTO> SimulationDTO { get; set; }
Property Value
Type Description
DbSet<SimulationDTO>

SimulationRunDTO

Declaration
public DbSet<SimulationRunDTO> SimulationRunDTO { get; set; }
Property Value
Type Description
DbSet<SimulationRunDTO>

WMAssetAssociation

Declaration
public DbSet<WMAssetAssociation> WMAssetAssociation { get; set; }
Property Value
Type Description
DbSet<WMAssetAssociation>

WMAssetDirectoryDTO

Declaration
public DbSet<WMAssetDirectoryDTO> WMAssetDirectoryDTO { get; set; }
Property Value
Type Description
DbSet<WMAssetDirectoryDTO>

WMDataReaderDTO

Declaration
public DbSet<WMDataReaderDTO> WMDataReaderDTO { get; set; }
Property Value
Type Description
DbSet<WMDataReaderDTO>

WMDataSourceDTO

Declaration
public DbSet<WMDataSourceBaseDTO> WMDataSourceDTO { get; set; }
Property Value
Type Description
DbSet<WMDataSourceBaseDTO>

WMDocumentDTO

Declaration
public DbSet<WMDocumentDTO> WMDocumentDTO { get; set; }
Property Value
Type Description
DbSet<WMDocumentDTO>

WMDocumentIndexDTO

Declaration
public DbSet<WMDocumentIndexDTO> WMDocumentIndexDTO { get; set; }
Property Value
Type Description
DbSet<WMDocumentIndexDTO>

WMLLMConversationRecord

Declaration
public DbSet<WMLLMConversationRecord> WMLLMConversationRecord { get; set; }
Property Value
Type Description
DbSet<WMLLMConversationRecord>

WMLLMDTO

Declaration
public DbSet<WMLLMDTO> WMLLMDTO { get; set; }
Property Value
Type Description
DbSet<WMLLMDTO>

WMModelDTO

Declaration
public DbSet<WMModelBaseDTO> WMModelDTO { get; set; }
Property Value
Type Description
DbSet<WMModelBaseDTO>

Methods

Create()

Create a new instance of a WMAppDbContext.

Declaration
public static WMAppDbContext Create()
Returns
Type Description
WMAppDbContext

OnModelCreating(ModelBuilder)

Map the .NET model classes to relational tables.

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

Implements

IInfrastructure<T>
IDbContextDependencies
IDbSetCache
IDbContextPoolable
IResettableService
IDisposable
IAsyncDisposable
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE