MonsterContext<TCustomer, TBarcode, TIncorrectScan, TBarcodeDetail, TComplaint, TResolution, TLogin, TSuspiciousActivity, TSmartCard, TRsaToken, TPasswordReset, TPageView, TLastLogin, TMessage, TAnOrder, TOrderNote, TOrderQualityCheck, TOrderLine, TProduct, TProductDetail, TProductReview, TProductPhoto, TProductWebFeature, TSupplier, TSupplierLogo, TSupplierInfo, TCustomerInfo, TComputer, TComputerDetail, TDriver, TLicense> MonsterContext(Of TCustomer, TBarcode, TIncorrectScan, TBarcodeDetail, TComplaint, TResolution, TLogin, TSuspiciousActivity, TSmartCard, TRsaToken, TPasswordReset, TPageView, TLastLogin, TMessage, TAnOrder, TOrderNote, TOrderQualityCheck, TOrderLine, TProduct, TProductDetail, TProductReview, TProductPhoto, TProductWebFeature, TSupplier, TSupplierLogo, TSupplierInfo, TCustomerInfo, TComputer, TComputerDetail, TDriver, TLicense) Class

Definition

public class MonsterContext<TCustomer, TBarcode, TIncorrectScan, TBarcodeDetail, TComplaint, TResolution, TLogin, TSuspiciousActivity, TSmartCard, TRsaToken, TPasswordReset, TPageView, TLastLogin, TMessage, TAnOrder, TOrderNote, TOrderQualityCheck, TOrderLine, TProduct, TProductDetail, TProductReview, TProductPhoto, TProductWebFeature, TSupplier, TSupplierLogo, TSupplierInfo, TCustomerInfo, TComputer, TComputerDetail, TDriver, TLicense> : MonsterContext, IDisposable, IInfrastructure<IServiceProvider> where TCustomer : class, ICustomer, new ()where TBarcode : class, IBarcode, new ()where TIncorrectScan : class, IIncorrectScan, new ()where TBarcodeDetail : class, IBarcodeDetail, new ()where TComplaint : class, IComplaint, new ()where TResolution : class, IResolution, new ()where TLogin : class, ILogin, new ()where TSuspiciousActivity : class, ISuspiciousActivity, new ()where TSmartCard : class, ISmartCard, new ()where TRsaToken : class, IRsaToken, new ()where TPasswordReset : class, IPasswordReset, new ()where TPageView : class, IPageView, new ()where TLastLogin : class, ILastLogin, new ()where TMessage : class, IMessage, new ()where TAnOrder : class, IAnOrder, new ()where TOrderNote : class, IOrderNote, new ()where TOrderQualityCheck : class, IOrderQualityCheck, new ()where TOrderLine : class, IOrderLine, new ()where TProduct : class, IProduct, new ()where TProductDetail : class, IProductDetail, new ()where TProductReview : class, IProductReview, new ()where TProductPhoto : class, IProductPhoto, new ()where TProductWebFeature : class, IProductWebFeature, new ()where TSupplier : class, ISupplier, new ()where TSupplierLogo : class, ISupplierLogo, new ()where TSupplierInfo : class, ISupplierInfo, new ()where TCustomerInfo : class, ICustomerInfo, new ()where TComputer : class, IComputer, new ()where TComputerDetail : class, IComputerDetail, new ()where TDriver : class, IDriver, new ()where TLicense : class, ILicense, new ()
Public Class MonsterContext(Of TCustomer As {Class, ICustomer, New}, TBarcode As {Class, IBarcode, New}, TIncorrectScan As {Class, IIncorrectScan, New}, TBarcodeDetail As {Class, IBarcodeDetail, New}, TComplaint As {Class, IComplaint, New}, TResolution As {Class, IResolution, New}, TLogin As {Class, ILogin, New}, TSuspiciousActivity As {Class, ISuspiciousActivity, New}, TSmartCard As {Class, ISmartCard, New}, TRsaToken As {Class, IRsaToken, New}, TPasswordReset As {Class, IPasswordReset, New}, TPageView As {Class, IPageView, New}, TLastLogin As {Class, ILastLogin, New}, TMessage As {Class, IMessage, New}, TAnOrder As {Class, IAnOrder, New}, TOrderNote As {Class, IOrderNote, New}, TOrderQualityCheck As {Class, IOrderQualityCheck, New}, TOrderLine As {Class, IOrderLine, New}, TProduct As {Class, IProduct, New}, TProductDetail As {Class, IProductDetail, New}, TProductReview As {Class, IProductReview, New}, TProductPhoto As {Class, IProductPhoto, New}, TProductWebFeature As {Class, IProductWebFeature, New}, TSupplier As {Class, ISupplier, New}, TSupplierLogo As {Class, ISupplierLogo, New}, TSupplierInfo As {Class, ISupplierInfo, New}, TCustomerInfo As {Class, ICustomerInfo, New}, TComputer As {Class, IComputer, New}, TComputerDetail As {Class, IComputerDetail, New}, TDriver As {Class, IDriver, New}, TLicense As {Class, ILicense, New})
    Inherits MonsterContext
    Implements IDisposable, IInfrastructure(Of IServiceProvider)

Type Parameters

TCustomer
TBarcode
TIncorrectScan
TBarcodeDetail
TComplaint
TResolution
TLogin
TSuspiciousActivity
TSmartCard
TRsaToken
TPasswordReset
TPageView
TLastLogin
TMessage
TAnOrder
TOrderNote
TOrderQualityCheck
TOrderLine
TProduct
TProductDetail
TProductReview
TProductPhoto
TProductWebFeature
TSupplier
TSupplierLogo
TSupplierInfo
TCustomerInfo
TComputer
TComputerDetail
TDriver
TLicense
Inheritance
System.ObjectSystem.Object
MonsterContext<TCustomer, TBarcode, TIncorrectScan, TBarcodeDetail, TComplaint, TResolution, TLogin, TSuspiciousActivity, TSmartCard, TRsaToken, TPasswordReset, TPageView, TLastLogin, TMessage, TAnOrder, TOrderNote, TOrderQualityCheck, TOrderLine, TProduct, TProductDetail, TProductReview, TProductPhoto, TProductWebFeature, TSupplier, TSupplierLogo, TSupplierInfo, TCustomerInfo, TComputer, TComputerDetail, TDriver, TLicense>MonsterContext(Of TCustomer, TBarcode, TIncorrectScan, TBarcodeDetail, TComplaint, TResolution, TLogin, TSuspiciousActivity, TSmartCard, TRsaToken, TPasswordReset, TPageView, TLastLogin, TMessage, TAnOrder, TOrderNote, TOrderQualityCheck, TOrderLine, TProduct, TProductDetail, TProductReview, TProductPhoto, TProductWebFeature, TSupplier, TSupplierLogo, TSupplierInfo, TCustomerInfo, TComputer, TComputerDetail, TDriver, TLicense)
Implements
System.IDisposableSystem.IDisposable IInfrastructure<System.IServiceProvider>IInfrastructure(Of System.IServiceProvider)

Constructors

MonsterContext(DbContextOptions, Action<ModelBuilder>) MonsterContext(DbContextOptions, Action(Of ModelBuilder))

Properties

BarcodeDetails BarcodeDetails
Barcodes Barcodes
ChangeTracker ChangeTracker

Provides access to information and operations for entity instances this context is tracking.

(Inherited from DbContext)
Complaints Complaints
ComputerDetails ComputerDetails
Computers Computers
CustomerInformation CustomerInformation
Customers Customers
Database Database

Provides access to database related information and operations for this context.

(Inherited from DbContext)
Drivers Drivers
IInfrastructure<IServiceProvider>.Instance Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.Instance

Gets the scoped System.IServiceProvider being used to resolve services.

This property is intended for use by extension methods that need to make use of services not directly exposed in the public API surface.

(Inherited from DbContext)
IncorrectScans IncorrectScans
LastLogins LastLogins
Licenses Licenses
Logins Logins
Messages Messages
Model Model

The metadata about the shape of entities, the relationships between them, and how they map to the database.

(Inherited from DbContext)
OrderLines OrderLines
OrderNotes OrderNotes
OrderQualityChecks OrderQualityChecks
Orders Orders
PageViews PageViews
PasswordResets PasswordResets
ProductDetails ProductDetails
ProductPhotos ProductPhotos
ProductReviews ProductReviews
Products Products
ProductWebFeatures ProductWebFeatures
Resolutions Resolutions
RsaTokens RsaTokens
SmartCards SmartCards
SupplierInformation SupplierInformation
SupplierLogos SupplierLogos
Suppliers Suppliers
SuspiciousActivities SuspiciousActivities

Methods

Add(Object) Add(Object)

Begins tracking the given entity, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

(Inherited from DbContext)
Microsoft.EntityFrameworkCore.DbContext.Add<TEntity>(TEntity) Microsoft.EntityFrameworkCore.DbContext.Add<TEntity>(TEntity) Inherited from DbContext
AddAsync(Object, CancellationToken) AddAsync(Object, CancellationToken)

Begins tracking the given entity, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

This method is async only to allow special value generators, such as the one used by 'Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy.SequenceHiLo', to access the database asynchronously. For all other cases the non async method should be used.

(Inherited from DbContext)
Microsoft.EntityFrameworkCore.DbContext.AddAsync<TEntity>(TEntity, System.Threading.CancellationToken) Microsoft.EntityFrameworkCore.DbContext.AddAsync<TEntity>(TEntity, System.Threading.CancellationToken) Inherited from DbContext
AddRange(IEnumerable<Object>) AddRange(IEnumerable(Of Object))

Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

(Inherited from DbContext)
AddRange(Object[]) AddRange(Object())

Begins tracking the given entities, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

(Inherited from DbContext)
AddRangeAsync(IEnumerable<Object>, CancellationToken) AddRangeAsync(IEnumerable(Of Object), CancellationToken)

Begins tracking the given entity, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

This method is async only to allow special value generators, such as the one used by 'Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy.SequenceHiLo', to access the database asynchronously. For all other cases the non async method should be used.

(Inherited from DbContext)
AddRangeAsync(Object[]) AddRangeAsync(Object())

Begins tracking the given entity, and any other reachable entities that are not already being tracked, in the Added state such that they will be inserted into the database when SaveChanges() is called.

This method is async only to allow special value generators, such as the one used by 'Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy.SequenceHiLo', to access the database asynchronously. For all other cases the non async method should be used.

(Inherited from DbContext)
Attach(Object) Attach(Object)

Begins tracking the given entity in the Unchanged state such that no operation will be performed when SaveChanges() is called.

A recursive search of the navigation properties will be performed to find reachable entities that are not already being tracked by the context. These entities will also begin to be tracked by the context. If a reachable entity has its primary key value set then it will be tracked in the Unchanged state. If the primary key value is not set then it will be tracked in the Added state. An entity is considered to have its primary key value set if the primary key property is set to anything other than the CLR default for the property type.

(Inherited from DbContext)
Microsoft.EntityFrameworkCore.DbContext.Attach<TEntity>(TEntity) Microsoft.EntityFrameworkCore.DbContext.Attach<TEntity>(TEntity) Inherited from DbContext
AttachRange(IEnumerable<Object>) AttachRange(IEnumerable(Of Object))

Begins tracking the given entities in the Unchanged state such that no operation will be performed when SaveChanges() is called.

A recursive search of the navigation properties will be performed to find reachable entities that are not already being tracked by the context. These entities will also begin to be tracked by the context. If a reachable entity has its primary key value set then it will be tracked in the Unchanged state. If the primary key value is not set then it will be tracked in the Added state. An entity is considered to have its primary key value set if the primary key property is set to anything other than the CLR default for the property type.

(Inherited from DbContext)
AttachRange(Object[]) AttachRange(Object())

Begins tracking the given entities in the Unchanged state such that no operation will be performed when SaveChanges() is called.

A recursive search of the navigation properties will be performed to find reachable entities that are not already being tracked by the context. These entities will also begin to be tracked by the context. If a reachable entity has its primary key value set then it will be tracked in the Unchanged state. If the primary key value is not set then it will be tracked in the Added state. An entity is considered to have its primary key value set if the primary key property is set to anything other than the CLR default for the property type.

(Inherited from DbContext)
Dispose() Dispose()

Releases the allocated resources for this context.

(Inherited from DbContext)
Entry(Object) Entry(Object)

Gets an EntityEntry for the given entity. The entry provides access to change tracking information and operations for the entity.

This method may be called on an entity that is not tracked. You can then set the State property on the returned entry to have the context begin tracking the entity in the specified state.

(Inherited from DbContext)
Microsoft.EntityFrameworkCore.DbContext.Entry<TEntity>(TEntity) Microsoft.EntityFrameworkCore.DbContext.Entry<TEntity>(TEntity) Inherited from DbContext
System.Object.Equals(System.Object) System.Object.Equals(System.Object) Inherited from System.Object
System.Object.Equals(System.Object, System.Object) System.Object.Equals(System.Object, System.Object) Inherited from System.Object
Find(Type, Object[]) Find(Type, Object())

Finds an entity with the given primary key values. If an entity with the given primary key values is being tracked by the context, then it is returned immediately without making a request to the database. Otherwise, a query is made to the dataabse for an entity with the given primary key values and this entity, if found, is attached to the context and returned. If no entity is found, then null is returned.

(Inherited from DbContext)
Find<TEntity>(Object[]) Find(Of TEntity)(Object())

Finds an entity with the given primary key values. If an entity with the given primary key values is being tracked by the context, then it is returned immediately without making a request to the database. Otherwise, a query is made to the dataabse for an entity with the given primary key values and this entity, if found, is attached to the context and returned. If no entity is found, then null is returned.

(Inherited from DbContext)
FindAsync(Type, Object[]) FindAsync(Type, Object())

Finds an entity with the given primary key values. If an entity with the given primary key values is being tracked by the context, then it is returned immediately without making a request to the database. Otherwise, a query is made to the dataabse for an entity with the given primary key values and this entity, if found, is attached to the context and returned. If no entity is found, then null is returned.

(Inherited from DbContext)
FindAsync(Type, Object[], CancellationToken) FindAsync(Type, Object(), CancellationToken)

Finds an entity with the given primary key values. If an entity with the given primary key values is being tracked by the context, then it is returned immediately without making a request to the database. Otherwise, a query is made to the dataabse for an entity with the given primary key values and this entity, if found, is attached to the context and returned. If no entity is found, then null is returned.

(Inherited from DbContext)
FindAsync<TEntity>(Object[]) FindAsync(Of TEntity)(Object())

Finds an entity with the given primary key values. If an entity with the given primary key values is being tracked by the context, then it is returned immediately without making a request to the database. Otherwise, a query is made to the dataabse for an entity with the given primary key values and this entity, if found, is attached to the context and returned. If no entity is found, then null is returned.

(Inherited from DbContext)
FindAsync<TEntity>(Object[], CancellationToken) FindAsync(Of TEntity)(Object(), CancellationToken)

Finds an entity with the given primary key values. If an entity with the given primary key values is being tracked by the context, then it is returned immediately without making a request to the database. Otherwise, a query is made to the dataabse for an entity with the given primary key values and this entity, if found, is attached to the context and returned. If no entity is found, then null is returned.

(Inherited from DbContext)
System.Object.GetHashCode() System.Object.GetHashCode() Inherited from System.Object
System.Object.GetType() System.Object.GetType() Inherited from System.Object
System.Object.MemberwiseClone() System.Object.MemberwiseClone() Inherited from System.Object
OnConfiguring(DbContextOptionsBuilder) OnConfiguring(DbContextOptionsBuilder)

Override this method to configure the database (and other options) to be used for this context. This method is called for each instance of the context that is created.

In situations where an instance of DbContextOptions may or may not have been passed to the constructor, you can use IsConfigured to determine if the options have already been set, and skip some or all of the logic in OnConfiguring(DbContextOptionsBuilder).

(Inherited from DbContext)
OnModelCreating(ModelBuilder) OnModelCreating(ModelBuilder)
System.Object.ReferenceEquals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) Inherited from System.Object
Remove(Object) Remove(Object)

Begins tracking the given entity in the Deleted state such that it will be removed from the database when SaveChanges() is called.

(Inherited from DbContext)
Microsoft.EntityFrameworkCore.DbContext.Remove<TEntity>(TEntity) Microsoft.EntityFrameworkCore.DbContext.Remove<TEntity>(TEntity) Inherited from DbContext
RemoveRange(IEnumerable<Object>) RemoveRange(IEnumerable(Of Object))

Begins tracking the given entity in the Deleted state such that it will be removed from the database when SaveChanges() is called.

(Inherited from DbContext)
RemoveRange(Object[]) RemoveRange(Object())

Begins tracking the given entity in the Deleted state such that it will be removed from the database when SaveChanges() is called.

(Inherited from DbContext)
SaveChanges() SaveChanges()

Saves all changes made in this context to the database.

(Inherited from DbContext)
SaveChanges(Boolean) SaveChanges(Boolean)

Saves all changes made in this context to the database.

(Inherited from DbContext)
SaveChangesAsync(Boolean, CancellationToken) SaveChangesAsync(Boolean, CancellationToken)

Asynchronously saves all changes made in this context to the database.

(Inherited from DbContext)
SaveChangesAsync(CancellationToken) SaveChangesAsync(CancellationToken)

Asynchronously saves all changes made in this context to the database.

(Inherited from DbContext)
SeedUsingFKs(Boolean) SeedUsingFKs(Boolean)
SeedUsingNavigations(Boolean, Boolean, Boolean) SeedUsingNavigations(Boolean, Boolean, Boolean)
SeedUsingNavigationsWithDeferredAdd(Boolean) SeedUsingNavigationsWithDeferredAdd(Boolean)
Set<TEntity>() Set(Of TEntity)()

Creates a DbSet<TEntity> that can be used to query and save instances of TEntity.

(Inherited from DbContext)
System.Object.ToString() System.Object.ToString() Inherited from System.Object
Update(Object) Update(Object)

Begins tracking the given entity in the Modified state such that it will be updated in the database when SaveChanges() is called.

All properties of the entity will be marked as modified. To mark only some properties as modified, use Attach(Object) to begin tracking the entity in the Unchanged state and then use the returned EntityEntry to mark the desired properties as modified.

A recursive search of the navigation properties will be performed to find reachable entities that are not already being tracked by the context. These entities will also begin to be tracked by the context. If a reachable entity has its primary key value set then it will be tracked in the Modified state. If the primary key value is not set then it will be tracked in the Added state. An entity is considered to have its primary key value set if the primary key property is set to anything other than the CLR default for the property type.

(Inherited from DbContext)
Microsoft.EntityFrameworkCore.DbContext.Update<TEntity>(TEntity) Microsoft.EntityFrameworkCore.DbContext.Update<TEntity>(TEntity) Inherited from DbContext
UpdateRange(IEnumerable<Object>) UpdateRange(IEnumerable(Of Object))

Begins tracking the given entities in the Modified state such that they will be updated in the database when SaveChanges() is called.

All properties of each entity will be marked as modified. To mark only some properties as modified, use Attach(Object) to begin tracking each entity in the Unchanged state and then use the returned EntityEntry to mark the desired properties as modified.

A recursive search of the navigation properties will be performed to find reachable entities that are not already being tracked by the context. These entities will also begin to be tracked by the context. If a reachable entity has its primary key value set then it will be tracked in the Modified state. If the primary key value is not set then it will be tracked in the Added state. An entity is considered to have its primary key value set if the primary key property is set to anything other than the CLR default for the property type.

(Inherited from DbContext)
UpdateRange(Object[]) UpdateRange(Object())

Begins tracking the given entities in the Modified state such that they will be updated in the database when SaveChanges() is called.

All properties of each entity will be marked as modified. To mark only some properties as modified, use Attach(Object) to begin tracking each entity in the Unchanged state and then use the returned EntityEntry to mark the desired properties as modified.

A recursive search of the navigation properties will be performed to find reachable entities that are not already being tracked by the context. These entities will also begin to be tracked by the context. If a reachable entity has its primary key value set then it will be tracked in the Modified state. If the primary key value is not set then it will be tracked in the Added state. An entity is considered to have its primary key value set if the primary key property is set to anything other than the CLR default for the property type.

(Inherited from DbContext)