EntityTypeBuilder.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 HasNoKey ();
abstract member HasNoKey : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
override this.HasNoKey : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
Public Overridable Function HasNoKey () As EntityTypeBuilder

Returns

EntityTypeBuilder

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

Applies to