CosmosEntityTypeBuilderExtensions.UseETagConcurrency Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseETagConcurrency(EntityTypeBuilder) |
Configures this entity to use CosmosDb etag concurrency checks. |
UseETagConcurrency<TEntity>(EntityTypeBuilder<TEntity>) |
Configures this entity to use CosmosDb etag concurrency checks. |
UseETagConcurrency(EntityTypeBuilder)
Configures this entity to use CosmosDb etag concurrency checks.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UseETagConcurrency (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder);
static member UseETagConcurrency : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function UseETagConcurrency (entityTypeBuilder As EntityTypeBuilder) As EntityTypeBuilder
Parameters
- entityTypeBuilder
- EntityTypeBuilder
The builder for the entity type being configured.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.
Applies to
UseETagConcurrency<TEntity>(EntityTypeBuilder<TEntity>)
Configures this entity to use CosmosDb etag concurrency checks.
public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> UseETagConcurrency<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder) where TEntity : class;
static member UseETagConcurrency : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function UseETagConcurrency(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity)) As EntityTypeBuilder(Of TEntity)
Type Parameters
- TEntity
Parameters
- entityTypeBuilder
- EntityTypeBuilder<TEntity>
The builder for the entity type being configured.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Modeling entity types and relationships, and Accessing Azure Cosmos DB with EF Core for more information and examples.
Applies to
Entity Framework