AdventureWorksContext AdventureWorksContext Class

Definition

public class AdventureWorksContext : DbContext, IDisposable, IInfrastructure<IServiceProvider>
Public Class AdventureWorksContext
    Inherits DbContext
    Implements IDisposable, IInfrastructure(Of IServiceProvider)
Inheritance
System.ObjectSystem.Object
AdventureWorksContextAdventureWorksContext
Implements
System.IDisposableSystem.IDisposable IInfrastructure<System.IServiceProvider>IInfrastructure(Of System.IServiceProvider)

Constructors

AdventureWorksContext(DbContextOptions) AdventureWorksContext(DbContextOptions)

public AdventureWorksContext(DbContextOptions options)
Public Sub New(options As DbContextOptions)
Parameters

Properties

Addresses Addresses

public virtual DbSet<Address> Addresses { get; set; }
Public Overridable Property Addresses As DbSet(Of Address)
Value
DbSet<Address> DbSet(Of Address)

ChangeTracker ChangeTracker

Inherited from DbContext

CustomerAddresses CustomerAddresses

public virtual DbSet<CustomerAddress> CustomerAddresses { get; set; }
Public Overridable Property CustomerAddresses As DbSet(Of CustomerAddress)

Customers Customers

public virtual DbSet<Customer> Customers { get; set; }
Public Overridable Property Customers As DbSet(Of Customer)

Database Database

Inherited from DbContext

IInfrastructure.Instance Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure.Instance

Inherited from DbContext

Model Model

Inherited from DbContext

ProductCategories ProductCategories

public virtual DbSet<ProductCategory> ProductCategories { get; set; }
Public Overridable Property ProductCategories As DbSet(Of ProductCategory)

ProductDescriptions ProductDescriptions

public virtual DbSet<ProductDescription> ProductDescriptions { get; set; }
Public Overridable Property ProductDescriptions As DbSet(Of ProductDescription)

ProductModelProductDescriptions ProductModelProductDescriptions

public virtual DbSet<ProductModelProductDescription> ProductModelProductDescriptions { get; set; }
Public Overridable Property ProductModelProductDescriptions As DbSet(Of ProductModelProductDescription)

ProductModels ProductModels

public virtual DbSet<ProductModel> ProductModels { get; set; }
Public Overridable Property ProductModels As DbSet(Of ProductModel)

Products Products

public virtual DbSet<Product> Products { get; set; }
Public Overridable Property Products As DbSet(Of Product)
Value
DbSet<Product> DbSet(Of Product)

SalesOrderDetails SalesOrderDetails

public virtual DbSet<SalesOrderDetail> SalesOrderDetails { get; set; }
Public Overridable Property SalesOrderDetails As DbSet(Of SalesOrderDetail)

SalesOrders SalesOrders

public virtual DbSet<SalesOrder> SalesOrders { get; set; }
Public Overridable Property SalesOrders As DbSet(Of SalesOrder)

Methods

Add(Object) Add(Object)

Inherited from DbContext

Add(TEntity) Add(Of TEntity)(TEntity)

Inherited from DbContext

AddAsync(Object, CancellationToken) AddAsync(Object, CancellationToken)

Inherited from DbContext

AddAsync(TEntity, CancellationToken) AddAsync(Of TEntity)(TEntity, CancellationToken)

Inherited from DbContext

AddRange(IEnumerable) AddRange(IEnumerable(Of Object))

Inherited from DbContext

AddRange(Object[]) AddRange(Object())

Inherited from DbContext

AddRangeAsync(IEnumerable, CancellationToken) AddRangeAsync(IEnumerable(Of Object), CancellationToken)

Inherited from DbContext

AddRangeAsync(Object[]) AddRangeAsync(Object())

Inherited from DbContext

Attach(Object) Attach(Object)

Inherited from DbContext

Attach(TEntity) Attach(Of TEntity)(TEntity)

Inherited from DbContext

AttachRange(IEnumerable) AttachRange(IEnumerable(Of Object))

Inherited from DbContext

AttachRange(Object[]) AttachRange(Object())

Inherited from DbContext

Dispose() Dispose()

Inherited from DbContext

Entry(Object) Entry(Object)

Inherited from DbContext

Entry(TEntity) Entry(Of TEntity)(TEntity)

Inherited from DbContext

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

Find(Type, Object[]) Find(Type, Object())

Inherited from DbContext

Find(Object[]) Find(Of TEntity)(Object())

Inherited from DbContext

FindAsync(Type, Object[]) FindAsync(Type, Object())

Inherited from DbContext

FindAsync(Type, Object[], CancellationToken) FindAsync(Type, Object(), CancellationToken)

Inherited from DbContext

FindAsync(Object[]) FindAsync(Of TEntity)(Object())

Inherited from DbContext

FindAsync(Object[], CancellationToken) FindAsync(Of TEntity)(Object(), CancellationToken)

Inherited from DbContext

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

OnConfiguring(DbContextOptionsBuilder) OnConfiguring(DbContextOptionsBuilder)

Inherited from DbContext

OnModelCreating(ModelBuilder) OnModelCreating(ModelBuilder)

protected override void OnModelCreating(ModelBuilder modelBuilder)
Protected Overrides Sub OnModelCreating(modelBuilder As ModelBuilder)
Parameters
modelBuilder
ModelBuilder ModelBuilder
Overrides

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

Remove(Object) Remove(Object)

Inherited from DbContext

Remove(TEntity) Remove(Of TEntity)(TEntity)

Inherited from DbContext

RemoveRange(IEnumerable) RemoveRange(IEnumerable(Of Object))

Inherited from DbContext

RemoveRange(Object[]) RemoveRange(Object())

Inherited from DbContext

SaveChanges() SaveChanges()

Inherited from DbContext

SaveChanges(Boolean) SaveChanges(Boolean)

Inherited from DbContext

SaveChangesAsync(Boolean, CancellationToken) SaveChangesAsync(Boolean, CancellationToken)

Inherited from DbContext

SaveChangesAsync(CancellationToken) SaveChangesAsync(CancellationToken)

Inherited from DbContext

Set() Set(Of TEntity)()

Inherited from DbContext

ToString() ToString()

Inherited from System.Object

Update(Object) Update(Object)

Inherited from DbContext

Update(TEntity) Update(Of TEntity)(TEntity)

Inherited from DbContext

UpdateRange(IEnumerable) UpdateRange(IEnumerable(Of Object))

Inherited from DbContext

UpdateRange(Object[]) UpdateRange(Object())

Inherited from DbContext