Data​Annotation​Context Data​Annotation​Context Class

Definition

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

Inherited Members

Microsoft.EntityFrameworkCore.DbContext

SaveChanges(System.Boolean)SaveChanges(System.Boolean)
SaveChangesAsync(System.Threading.CancellationToken)SaveChangesAsync(System.Threading.CancellationToken)
SaveChangesAsync(System.Boolean, System.Threading.CancellationToken)SaveChangesAsync(System.Boolean, System.Threading.CancellationToken)
Entry(System.Object)Entry(System.Object)
Add<TEntity>(TEntity)Add(Of TEntity)(TEntity)
AddAsync<TEntity>(TEntity, System.Threading.CancellationToken)AddAsync(Of TEntity)(TEntity, System.Threading.CancellationToken)
Add(System.Object)Add(System.Object)
AddAsync(System.Object, System.Threading.CancellationToken)AddAsync(System.Object, System.Threading.CancellationToken)
Attach(System.Object)Attach(System.Object)
Update(System.Object)Update(System.Object)
Remove(System.Object)Remove(System.Object)
AddRange(System.Object[])AddRange(System.Object())
AddRangeAsync(System.Object[])AddRangeAsync(System.Object())
AttachRange(System.Object[])AttachRange(System.Object())
UpdateRange(System.Object[])UpdateRange(System.Object())
RemoveRange(System.Object[])RemoveRange(System.Object())
AddRange(System.Collections.Generic.IEnumerable<System.Object>)AddRange(System.Collections.Generic.IEnumerable(Of System.Object))
AddRangeAsync(System.Collections.Generic.IEnumerable<System.Object>, System.Threading.CancellationToken)AddRangeAsync(System.Collections.Generic.IEnumerable(Of System.Object), System.Threading.CancellationToken)
AttachRange(System.Collections.Generic.IEnumerable<System.Object>)AttachRange(System.Collections.Generic.IEnumerable(Of System.Object))
UpdateRange(System.Collections.Generic.IEnumerable<System.Object>)UpdateRange(System.Collections.Generic.IEnumerable(Of System.Object))
RemoveRange(System.Collections.Generic.IEnumerable<System.Object>)RemoveRange(System.Collections.Generic.IEnumerable(Of System.Object))
Find(System.Type, System.Object[])Find(System.Type, System.Object())
FindAsync(System.Type, System.Object[])FindAsync(System.Type, System.Object())
FindAsync(System.Type, System.Object[], System.Threading.CancellationToken)FindAsync(System.Type, System.Object(), System.Threading.CancellationToken)
Find<TEntity>(System.Object[])Find(Of TEntity)(System.Object())
FindAsync<TEntity>(System.Object[])FindAsync(Of TEntity)(System.Object())
FindAsync<TEntity>(System.Object[], System.Threading.CancellationToken)FindAsync(Of TEntity)(System.Object(), System.Threading.CancellationToken)

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Constructors

DataAnnotationContext(DbContextOptions) DataAnnotationContext(DbContextOptions)

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

Properties

AdditionalBookDetails AdditionalBookDetails

public DbSet<AdditionalBookDetail> AdditionalBookDetails { get; set; }Public Property AdditionalBookDetails As DbSet(Of AdditionalBookDetail)

BookDetails BookDetails

public DbSet<BookDetail> BookDetails { get; set; }Public Property BookDetails As DbSet(Of BookDetail)

Books Books

public DbSet<Book> Books { get; set; }Public Property Books As DbSet(Of Book)
Value
DbSet<Book> DbSet(Of Book)

Ones Ones

public DbSet<One> Ones { get; set; }Public Property Ones As DbSet(Of One)
Value
DbSet<One> DbSet(Of One)

Twos Twos

public DbSet<Two> Twos { get; set; }Public Property Twos As DbSet(Of Two)
Value
DbSet<Two> DbSet(Of Two)