RelationalKeyBuilderExtensions Class

Definition

Relational database specific extension methods for KeyBuilder.

C#
public static class RelationalKeyBuilderExtensions
Inheritance
RelationalKeyBuilderExtensions

Remarks

See Keys for more information and examples.

Methods

CanSetName(IConventionKeyBuilder, String, Boolean)

Returns a value indicating whether the given name can be set for the key constraint.

HasName(IConventionKeyBuilder, String, Boolean)

Configures the name of the key constraint in the database when targeting a relational database.

HasName(KeyBuilder, String)

Configures the name of the key constraint in the database when targeting a relational database.

HasName<TEntity>(KeyBuilder<TEntity>, String)

Configures the name of the key constraint in the database when targeting a relational database.

Applies to

Toode Versioonid
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0