TestingDbContext Class
Namespace: PTS.Modules.Tests.Infrastructure
Assembly: Modules.Tests.dll
Testing DbContext containing all modules in PTS.
Syntax
public class TestingDbContext : ExtensibleDbContext, IDisposable, IAsyncDisposable, IInfrastructure<IServiceProvider>, IDbContextDependencies, IDbSetCache, IDbContextPoolable, IResettableService, IEntityServiceProvider
Inheritance
System.Object
Microsoft.EntityFrameworkCore.DbContext
TestingDbContext
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
Constructors
TestingDbContext(DbContextOptions)
Declaration
public TestingDbContext(DbContextOptions options)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContextOptions | options |
Properties
Accounts
Declaration
public DbSet<Account> Accounts { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Account> |
Applications
Declaration
public DbSet<Application> Applications { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Application> |
Classifications
Declaration
public DbSet<Classification> Classifications { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Classification> |
Contacts
Declaration
public DbSet<Contact> Contacts { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Contact> |
ConversationMembers
Declaration
public DbSet<ConversationMember> ConversationMembers { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ConversationMember> |
ConversationMessages
Declaration
public DbSet<ConversationMessage> ConversationMessages { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ConversationMessage> |
Conversations
Declaration
public DbSet<Conversation> Conversations { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Conversation> |
DataServerLinks
Declaration
public DbSet<DataServerLink> DataServerLinks { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<DataServerLink> |
DataServers
Declaration
public DbSet<DataServer> DataServers { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<DataServer> |
DeviceApps
Declaration
public DbSet<DeviceApp> DeviceApps { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<DeviceApp> |
Devices
Declaration
public DbSet<Device> Devices { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Device> |
DynamicTexts
Declaration
public DbSet<DynamicText> DynamicTexts { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<DynamicText> |
EventMembers
Declaration
public DbSet<EventMember> EventMembers { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<EventMember> |
Events
Declaration
public DbSet<Event> Events { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Event> |
EventTimes
Declaration
public DbSet<EventTime> EventTimes { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<EventTime> |
FileLinks
Declaration
public DbSet<FileLink> FileLinks { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<FileLink> |
Files
Declaration
public DbSet<File> Files { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<File> |
Hostnames
Declaration
public DbSet<Hostname> Hostnames { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Hostname> |
Identities
Declaration
public DbSet<Identity> Identities { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Identity> |
IdentityLocales
Declaration
public DbSet<IdentityLocale> IdentityLocales { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<IdentityLocale> |
IdentityTranslationExtension
Declaration
public DbSet<IdentityTranslation> IdentityTranslationExtension { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<IdentityTranslation> |
InstanceIdentityLinks
Declaration
public DbSet<InstanceIdentityLink> InstanceIdentityLinks { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<InstanceIdentityLink> |
Instances
Declaration
public DbSet<Instance> Instances { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Instance> |
InvoiceBillingInfos
Declaration
public DbSet<InvoiceBillingInfo> InvoiceBillingInfos { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<InvoiceBillingInfo> |
InvoiceItems
Declaration
public DbSet<InvoiceItem> InvoiceItems { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<InvoiceItem> |
Invoices
Declaration
public DbSet<Invoice> Invoices { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Invoice> |
Logins
Declaration
public DbSet<Login> Logins { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Login> |
MoneyAccountActivities
Declaration
public DbSet<MoneyAccountActivity> MoneyAccountActivities { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<MoneyAccountActivity> |
MoneyAccounts
Declaration
public DbSet<MoneyAccount> MoneyAccounts { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<MoneyAccount> |
NotificationAttachments
Declaration
public DbSet<NotificationAttachment> NotificationAttachments { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<NotificationAttachment> |
NotificationPayloads
Declaration
public DbSet<NotificationPayload> NotificationPayloads { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<NotificationPayload> |
NotificationProfileLinks
Declaration
public DbSet<NotificationProfileLink> NotificationProfileLinks { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<NotificationProfileLink> |
Notifications
Declaration
public DbSet<Notification> Notifications { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Notification> |
NotificationTemplateGroups
Declaration
public DbSet<NotificationTemplateGroup> NotificationTemplateGroups { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<NotificationTemplateGroup> |
NotificationTemplateGroupTimings
Declaration
public DbSet<NotificationTemplateGroupTiming> NotificationTemplateGroupTimings { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<NotificationTemplateGroupTiming> |
NotificationTemplateItems
Declaration
public DbSet<NotificationTemplateItem> NotificationTemplateItems { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<NotificationTemplateItem> |
NotificationTemplates
Declaration
public DbSet<NotificationTemplate> NotificationTemplates { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<NotificationTemplate> |
OrderItemEventAggregate
Declaration
public DbSet<OrderItemEvent> OrderItemEventAggregate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<OrderItemEvent> |
OrderItemPricings
Declaration
public DbSet<OrderItemPricing> OrderItemPricings { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<OrderItemPricing> |
OrderItems
Declaration
public DbSet<OrderItem> OrderItems { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<OrderItem> |
OrderNotificationAggregate
Declaration
public DbSet<OrderNotification> OrderNotificationAggregate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<OrderNotification> |
Orders
Declaration
public DbSet<Order> Orders { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Order> |
PhysicalAddresses
Declaration
public DbSet<PhysicalAddress> PhysicalAddresses { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<PhysicalAddress> |
Pictures
Declaration
public DbSet<Picture> Pictures { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Picture> |
ProductPriceEventAggregate
Declaration
public DbSet<ProductPriceEvent> ProductPriceEventAggregate { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProductPriceEvent> |
ProductPrices
Declaration
public DbSet<ProductPrice> ProductPrices { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProductPrice> |
Products
Declaration
public DbSet<Product> Products { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Product> |
ProfileAddressAggregate
Declaration
public DbSet<ProfileAddress> ProfileAddressAggregate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProfileAddress> |
ProfileAliasExtension
Declaration
public DbSet<ProfileAlias> ProfileAliasExtension { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProfileAlias> |
ProfileLinks
Declaration
public DbSet<ProfileLink> ProfileLinks { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProfileLink> |
ProfilePostClassificationAggregate
Declaration
public DbSet<ProfilePostClassification> ProfilePostClassificationAggregate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProfilePostClassification> |
ProfilePostExtension
Declaration
public DbSet<ProfilePost> ProfilePostExtension { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProfilePost> |
Profiles
Declaration
public DbSet<Profile> Profiles { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Profile> |
ProfileSeo
Declaration
public DbSet<ProfileSeo> ProfileSeo { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProfileSeo> |
ProfileTypeLinks
Declaration
public DbSet<ProfileTypeLink> ProfileTypeLinks { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<ProfileTypeLink> |
RecurringTransactions
Declaration
public DbSet<RecurringTransaction> RecurringTransactions { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<RecurringTransaction> |
Settings
Declaration
public DbSet<Setting> Settings { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Setting> |
StockItems
Declaration
public DbSet<StockItem> StockItems { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<StockItem> |
SystemLogPictureAggregate
Declaration
public DbSet<SystemLogPicture> SystemLogPictureAggregate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<SystemLogPicture> |
SystemLogs
Declaration
public DbSet<SystemLog> SystemLogs { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<SystemLog> |
Tokens
Declaration
public DbSet<Token> Tokens { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Token> |
TransactionInfos
Declaration
public DbSet<TransactionInfo> TransactionInfos { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<TransactionInfo> |
Transactions
Declaration
public DbSet<Transaction> Transactions { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Transaction> |
Translations
Declaration
public DbSet<Translation> Translations { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<Translation> |
UrlRedirects
Declaration
public DbSet<UrlRedirect> UrlRedirects { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<UrlRedirect> |
Users
Declaration
public DbSet<User> Users { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbSet<User> |
Methods
OnEntityModelCreated(ModelBuilder)
Declaration
protected override void OnEntityModelCreated(ModelBuilder modelBuilder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.ModelBuilder | modelBuilder |
Overrides
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
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.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.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()