EntityTypeBuilder<TEntity>.HasNoKey Method

Definition

Configures the entity type to have no keys. It will only be usable for queries.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> HasNoKey ();
override this.HasNoKey : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function HasNoKey () As EntityTypeBuilder(Of TEntity)

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to