InternalDbSet<TEntity> InternalDbSet(Of TEntity) Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class InternalDbSet<TEntity> : DbSet<TEntity>, IQueryable<TEntity>, IEnumerable<TEntity>, IQueryable, IEnumerable, IAsyncEnumerableAccessor<TEntity>, IInfrastructure<IServiceProvider> where TEntity : class
Public Class InternalDbSet(Of TEntity As Class)
    Inherits DbSet(Of TEntity)
    Implements IQueryable(Of TEntity), IEnumerable(Of TEntity), IQueryable, IEnumerable, IAsyncEnumerableAccessor(Of TEntity), IInfrastructure(Of IServiceProvider)
Type Parameters
TEntity
Inheritance
System.ObjectSystem.Object
DbSet<TEntity>DbSet(Of TEntity)
InternalDbSet<TEntity>InternalDbSet(Of TEntity)
Implements
System.Linq.IQueryable<TEntity>System.Linq.IQueryable(Of TEntity) System.Collections.Generic.IEnumerable<TEntity>System.Collections.Generic.IEnumerable(Of TEntity) System.Linq.IQueryableSystem.Linq.IQueryable System.Collections.IEnumerableSystem.Collections.IEnumerable IAsyncEnumerableAccessor<TEntity>IAsyncEnumerableAccessor(Of TEntity) IInfrastructure<System.IServiceProvider>IInfrastructure(Of System.IServiceProvider)

Constructors

InternalDbSet(DbContext) InternalDbSet(DbContext)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public InternalDbSet(DbContext context)
Public Sub New(context As DbContext)
Parameters

Properties

Local Local

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override LocalView<TEntity> Local { get; }
Public Overrides ReadOnly Property Local As LocalView(Of TEntity)
Value
LocalView<TEntity> LocalView(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.LocalMicrosoft.EntityFrameworkCore.DbSet<TEntity>.Local

Methods

Add(TEntity) Add(TEntity)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override EntityEntry<TEntity> Add(TEntity entity)
Public Overrides Function Add(entity As TEntity) As EntityEntry(Of TEntity)
Parameters
entity
TEntity TEntity
Returns
EntityEntry<TEntity> EntityEntry(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.Add(TEntity)Microsoft.EntityFrameworkCore.DbSet<TEntity>.Add(TEntity)

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

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Task<EntityEntry<TEntity>> AddAsync(TEntity entity, CancellationToken cancellationToken = null)
Public Overrides Function AddAsync(entity As TEntity, cancellationToken As CancellationToken = Nothing) As Task(Of EntityEntry(Of TEntity))
Parameters
entity
TEntity TEntity
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<EntityEntry<TEntity>> System.Threading.Tasks.Task(Of EntityEntry(Of TEntity))
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddAsync(TEntity, System.Threading.CancellationToken)Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddAsync(TEntity, System.Threading.CancellationToken)

AddRange(TEntity[]) AddRange(TEntity())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void AddRange(params TEntity[] entities)
Public Overrides Sub AddRange(ParamArray entities As TEntity())
Parameters
entities
TEntity[] TEntity()
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRange(TEntity[])Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRange(TEntity[])

AddRange(IEnumerable) AddRange(IEnumerable(Of TEntity))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void AddRange(IEnumerable<TEntity> entities)
Public Overrides Sub AddRange(entities As IEnumerable(Of TEntity))
Parameters
entities
System.Collections.Generic.IEnumerable<TEntity> System.Collections.Generic.IEnumerable(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRange(System.Collections.Generic.IEnumerable<TEntity>)Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRange(System.Collections.Generic.IEnumerable<TEntity>)

AddRangeAsync(TEntity[]) AddRangeAsync(TEntity())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Task AddRangeAsync(params TEntity[] entities)
Public Overrides Function AddRangeAsync(ParamArray entities As TEntity()) As Task
Parameters
entities
TEntity[] TEntity()
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRangeAsync(TEntity[])Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRangeAsync(TEntity[])

AddRangeAsync(IEnumerable, CancellationToken) AddRangeAsync(IEnumerable(Of TEntity), CancellationToken)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Task AddRangeAsync(IEnumerable<TEntity> entities, CancellationToken cancellationToken = null)
Public Overrides Function AddRangeAsync(entities As IEnumerable(Of TEntity), cancellationToken As CancellationToken = Nothing) As Task
Parameters
entities
System.Collections.Generic.IEnumerable<TEntity> System.Collections.Generic.IEnumerable(Of TEntity)
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task System.Threading.Tasks.Task
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRangeAsync(System.Collections.Generic.IEnumerable<TEntity>, System.Threading.CancellationToken)Microsoft.EntityFrameworkCore.DbSet<TEntity>.AddRangeAsync(System.Collections.Generic.IEnumerable<TEntity>, System.Threading.CancellationToken)

Attach(TEntity) Attach(TEntity)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override EntityEntry<TEntity> Attach(TEntity entity)
Public Overrides Function Attach(entity As TEntity) As EntityEntry(Of TEntity)
Parameters
entity
TEntity TEntity
Returns
EntityEntry<TEntity> EntityEntry(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.Attach(TEntity)Microsoft.EntityFrameworkCore.DbSet<TEntity>.Attach(TEntity)

AttachRange(TEntity[]) AttachRange(TEntity())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void AttachRange(params TEntity[] entities)
Public Overrides Sub AttachRange(ParamArray entities As TEntity())
Parameters
entities
TEntity[] TEntity()
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.AttachRange(TEntity[])Microsoft.EntityFrameworkCore.DbSet<TEntity>.AttachRange(TEntity[])

AttachRange(IEnumerable) AttachRange(IEnumerable(Of TEntity))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void AttachRange(IEnumerable<TEntity> entities)
Public Overrides Sub AttachRange(entities As IEnumerable(Of TEntity))
Parameters
entities
System.Collections.Generic.IEnumerable<TEntity> System.Collections.Generic.IEnumerable(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.AttachRange(System.Collections.Generic.IEnumerable<TEntity>)Microsoft.EntityFrameworkCore.DbSet<TEntity>.AttachRange(System.Collections.Generic.IEnumerable<TEntity>)

Find(Object[]) Find(Object())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override TEntity Find(params object[] keyValues)
Public Overrides Function Find(ParamArray keyValues As Object()) As TEntity
Parameters
keyValues
System.Object[] System.Object()
Returns
TEntity TEntity
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.Find(System.Object[])Microsoft.EntityFrameworkCore.DbSet<TEntity>.Find(System.Object[])

FindAsync(Object[]) FindAsync(Object())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Task<TEntity> FindAsync(params object[] keyValues)
Public Overrides Function FindAsync(ParamArray keyValues As Object()) As Task(Of TEntity)
Parameters
keyValues
System.Object[] System.Object()
Returns
System.Threading.Tasks.Task<TEntity> System.Threading.Tasks.Task(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.FindAsync(System.Object[])Microsoft.EntityFrameworkCore.DbSet<TEntity>.FindAsync(System.Object[])

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

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override Task<TEntity> FindAsync(object[] keyValues, CancellationToken cancellationToken)
Public Overrides Function FindAsync(keyValues As Object(), cancellationToken As CancellationToken) As Task(Of TEntity)
Parameters
keyValues
System.Object[] System.Object()
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<TEntity> System.Threading.Tasks.Task(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.FindAsync(System.Object[], System.Threading.CancellationToken)Microsoft.EntityFrameworkCore.DbSet<TEntity>.FindAsync(System.Object[], System.Threading.CancellationToken)

Remove(TEntity) Remove(TEntity)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override EntityEntry<TEntity> Remove(TEntity entity)
Public Overrides Function Remove(entity As TEntity) As EntityEntry(Of TEntity)
Parameters
entity
TEntity TEntity
Returns
EntityEntry<TEntity> EntityEntry(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.Remove(TEntity)Microsoft.EntityFrameworkCore.DbSet<TEntity>.Remove(TEntity)

RemoveRange(TEntity[]) RemoveRange(TEntity())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void RemoveRange(params TEntity[] entities)
Public Overrides Sub RemoveRange(ParamArray entities As TEntity())
Parameters
entities
TEntity[] TEntity()
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.RemoveRange(TEntity[])Microsoft.EntityFrameworkCore.DbSet<TEntity>.RemoveRange(TEntity[])

RemoveRange(IEnumerable) RemoveRange(IEnumerable(Of TEntity))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void RemoveRange(IEnumerable<TEntity> entities)
Public Overrides Sub RemoveRange(entities As IEnumerable(Of TEntity))
Parameters
entities
System.Collections.Generic.IEnumerable<TEntity> System.Collections.Generic.IEnumerable(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.RemoveRange(System.Collections.Generic.IEnumerable<TEntity>)Microsoft.EntityFrameworkCore.DbSet<TEntity>.RemoveRange(System.Collections.Generic.IEnumerable<TEntity>)

Update(TEntity) Update(TEntity)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override EntityEntry<TEntity> Update(TEntity entity)
Public Overrides Function Update(entity As TEntity) As EntityEntry(Of TEntity)
Parameters
entity
TEntity TEntity
Returns
EntityEntry<TEntity> EntityEntry(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.Update(TEntity)Microsoft.EntityFrameworkCore.DbSet<TEntity>.Update(TEntity)

UpdateRange(TEntity[]) UpdateRange(TEntity())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void UpdateRange(params TEntity[] entities)
Public Overrides Sub UpdateRange(ParamArray entities As TEntity())
Parameters
entities
TEntity[] TEntity()
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.UpdateRange(TEntity[])Microsoft.EntityFrameworkCore.DbSet<TEntity>.UpdateRange(TEntity[])

UpdateRange(IEnumerable) UpdateRange(IEnumerable(Of TEntity))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override void UpdateRange(IEnumerable<TEntity> entities)
Public Overrides Sub UpdateRange(entities As IEnumerable(Of TEntity))
Parameters
entities
System.Collections.Generic.IEnumerable<TEntity> System.Collections.Generic.IEnumerable(Of TEntity)
Overrides
Microsoft.EntityFrameworkCore.DbSet<TEntity>.UpdateRange(System.Collections.Generic.IEnumerable<TEntity>)Microsoft.EntityFrameworkCore.DbSet<TEntity>.UpdateRange(System.Collections.Generic.IEnumerable<TEntity>)

Explicit Interface Implementations

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

IServiceProvider IInfrastructure<IServiceProvider>.Instance { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.Instance As IServiceProvider Implements IInfrastructure(Of IServiceProvider).Instance
Returns
System.IServiceProvider System.IServiceProvider

IAsyncEnumerableAccessor.AsyncEnumerable Microsoft.EntityFrameworkCore.Query.Internal.IAsyncEnumerableAccessor.AsyncEnumerable

IAsyncEnumerable<TEntity> IAsyncEnumerableAccessor<TEntity>.AsyncEnumerable { get; }
ReadOnly WriteOnly Property Microsoft.EntityFrameworkCore.Query.Internal.IAsyncEnumerableAccessor<TEntity>.AsyncEnumerable As IAsyncEnumerable(Of TEntity) Implements IAsyncEnumerableAccessor(Of TEntity).AsyncEnumerable
Returns
IAsyncEnumerable<TEntity> IAsyncEnumerable(Of TEntity)

IEnumerable.GetEnumerator() System.Collections.Generic.IEnumerable.GetEnumerator()

IEnumerator<TEntity> IEnumerable<TEntity>.GetEnumerator()
Function System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator As IEnumerator(Of TEntity) Implements IEnumerable(Of TEntity).GetEnumerator
Returns
System.Collections.Generic.IEnumerator<TEntity> System.Collections.Generic.IEnumerator(Of TEntity)

IEnumerable.GetEnumerator() System.Collections.IEnumerable.GetEnumerator()

IEnumerator IEnumerable.GetEnumerator()
Function System.Collections.IEnumerable.GetEnumerator As IEnumerator Implements IEnumerable.GetEnumerator
Returns
System.Collections.IEnumerator System.Collections.IEnumerator

IQueryable.ElementType System.Linq.IQueryable.ElementType

Type IQueryable.ElementType { get; }
ReadOnly WriteOnly Property System.Linq.IQueryable.ElementType As Type Implements IQueryable.ElementType
Returns
System.Type System.Type

IQueryable.Expression System.Linq.IQueryable.Expression

Expression IQueryable.Expression { get; }
ReadOnly WriteOnly Property System.Linq.IQueryable.Expression As Expression Implements IQueryable.Expression
Returns
System.Linq.Expressions.Expression System.Linq.Expressions.Expression

IQueryable.Provider System.Linq.IQueryable.Provider

IQueryProvider IQueryable.Provider { get; }
ReadOnly WriteOnly Property System.Linq.IQueryable.Provider As IQueryProvider Implements IQueryable.Provider
Returns
System.Linq.IQueryProvider System.Linq.IQueryProvider