Table of Contents

Class InternalDbSet<TEntity>

Namespace
Microsoft.EntityFrameworkCore.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class InternalDbSet<TEntity> : DbSet<TEntity>, IListSource, IQueryable<TEntity>, IEnumerable<TEntity>, IQueryable, IEnumerable, IAsyncEnumerable<TEntity>, IInfrastructure<IServiceProvider>, IResettableService where TEntity : class

Type Parameters

TEntity
Inheritance
DbSet<TEntity>
InternalDbSet<TEntity>
Implements
IQueryable<TEntity>
IEnumerable<TEntity>
Inherited Members
Extension Methods

Constructors

InternalDbSet(DbContext, string?)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public InternalDbSet(DbContext context, string? entityTypeName)

Parameters

context DbContext
entityTypeName string

Properties

EntityType

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override IEntityType EntityType { get; }

Property Value

IEntityType

Local

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override LocalView<TEntity> Local { get; }

Property Value

LocalView<TEntity>

Methods

Add(TEntity)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override EntityEntry<TEntity> Add(TEntity entity)

Parameters

entity TEntity

Returns

EntityEntry<TEntity>

AddAsync(TEntity, CancellationToken)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override ValueTask<EntityEntry<TEntity>> AddAsync(TEntity entity, CancellationToken cancellationToken = default)

Parameters

entity TEntity
cancellationToken CancellationToken

Returns

ValueTask<EntityEntry<TEntity>>

AddRange(IEnumerable<TEntity>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void AddRange(IEnumerable<TEntity> entities)

Parameters

entities IEnumerable<TEntity>

AddRange(params TEntity[])

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void AddRange(params TEntity[] entities)

Parameters

entities TEntity[]

AddRangeAsync(IEnumerable<TEntity>, CancellationToken)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override Task AddRangeAsync(IEnumerable<TEntity> entities, CancellationToken cancellationToken = default)

Parameters

entities IEnumerable<TEntity>
cancellationToken CancellationToken

Returns

Task

AddRangeAsync(params TEntity[])

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override Task AddRangeAsync(params TEntity[] entities)

Parameters

entities TEntity[]

Returns

Task

Attach(TEntity)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override EntityEntry<TEntity> Attach(TEntity entity)

Parameters

entity TEntity

Returns

EntityEntry<TEntity>

AttachRange(IEnumerable<TEntity>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void AttachRange(IEnumerable<TEntity> entities)

Parameters

entities IEnumerable<TEntity>

AttachRange(params TEntity[])

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void AttachRange(params TEntity[] entities)

Parameters

entities TEntity[]

Entry(TEntity)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override EntityEntry<TEntity> Entry(TEntity entity)

Parameters

entity TEntity

Returns

EntityEntry<TEntity>

Find(params object?[]?)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override TEntity? Find(params object?[]? keyValues)

Parameters

keyValues object[]

Returns

TEntity

FindAsync(params object?[]?)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override ValueTask<TEntity?> FindAsync(params object?[]? keyValues)

Parameters

keyValues object[]

Returns

ValueTask<TEntity>

FindAsync(object?[]?, CancellationToken)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override ValueTask<TEntity?> FindAsync(object?[]? keyValues, CancellationToken cancellationToken)

Parameters

keyValues object[]
cancellationToken CancellationToken

Returns

ValueTask<TEntity>

Remove(TEntity)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override EntityEntry<TEntity> Remove(TEntity entity)

Parameters

entity TEntity

Returns

EntityEntry<TEntity>

RemoveRange(IEnumerable<TEntity>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void RemoveRange(IEnumerable<TEntity> entities)

Parameters

entities IEnumerable<TEntity>

RemoveRange(params TEntity[])

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void RemoveRange(params TEntity[] entities)

Parameters

entities TEntity[]

Update(TEntity)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override EntityEntry<TEntity> Update(TEntity entity)

Parameters

entity TEntity

Returns

EntityEntry<TEntity>

UpdateRange(IEnumerable<TEntity>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void UpdateRange(IEnumerable<TEntity> entities)

Parameters

entities IEnumerable<TEntity>

UpdateRange(params TEntity[])

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override void UpdateRange(params TEntity[] entities)

Parameters

entities TEntity[]