ModelBuilder.HasEmbeddedDiscriminatorName(String) Method

Definition

Sets the name to use for discriminator properties embedded in JSON documents. The default is "$type".

C#
public virtual Microsoft.EntityFrameworkCore.ModelBuilder HasEmbeddedDiscriminatorName (string name);

Parameters

name
String

The property name, or null to clear the name set.

Returns

The same ModelBuilder instance so that additional configuration calls can be chained.

Applies to

Proizvod Verzije
Entity Framework Core 9.0