RelationalEntityTypeBuilderExtensions Class

Definition

Relational database specific extension methods for EntityTypeBuilder.

public static class RelationalEntityTypeBuilderExtensions
type RelationalEntityTypeBuilderExtensions = class
Public Module RelationalEntityTypeBuilderExtensions
Inheritance
RelationalEntityTypeBuilderExtensions

Remarks

See Modeling entity types and relationships for more information.

Methods

CanExcludeTableFromMigrations(IConventionEntityTypeBuilder, Nullable<Boolean>, Boolean)

Returns a value indicating whether the table that this entity type is mapped to can be excluded from migrations using the specified configuration source.

CanHaveCheckConstraint(IConventionEntityTypeBuilder, String, String, Boolean)

Returns a value indicating whether the check constraint can be configured.

CanSetCheckConstraint(IConventionEntityTypeBuilder, String, String, Boolean)
Obsolete.

Returns a value indicating whether the check constraint can be configured.

CanSetComment(IConventionEntityTypeBuilder, String, Boolean)

Returns a value indicating whether a comment can be set for this entity type using the specified configuration source.

CanSetFunction(IConventionEntityTypeBuilder, MethodInfo, Boolean)

Returns a value indicating whether the function name can be set for this entity type using the specified configuration source.

CanSetFunction(IConventionEntityTypeBuilder, String, Boolean)

Returns a value indicating whether the function name can be set for this entity type using the specified configuration source.

CanSetSchema(IConventionEntityTypeBuilder, String, Boolean)

Returns a value indicating whether the schema of the table name can be set for this entity type using the specified configuration source.

CanSetSqlQuery(IConventionEntityTypeBuilder, String, Boolean)

Returns a value indicating whether the query SQL string can be set for this entity type using the specified configuration source.

CanSetTable(IConventionEntityTypeBuilder, String, Boolean)

Returns a value indicating whether the table name can be set for this entity type using the specified configuration source.

CanSetView(IConventionEntityTypeBuilder, String, Boolean)

Returns a value indicating whether the view name can be set for this entity type using the specified configuration source.

CanSetViewSchema(IConventionEntityTypeBuilder, String, Boolean)

Returns a value indicating whether the schema of the view can be set for this entity type using the specified configuration source.

ExcludeTableFromMigrations(IConventionEntityTypeBuilder, Nullable<Boolean>, Boolean)

Mark the table that this entity type is mapped to as excluded from migrations.

HasCheckConstraint(EntityTypeBuilder, String, String)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint(EntityTypeBuilder, String, String, Action<CheckConstraintBuilder>)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint(IConventionEntityTypeBuilder, String, String, Boolean)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint(OwnedNavigationBuilder, String, String)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint(OwnedNavigationBuilder, String, String, Action<CheckConstraintBuilder>)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<CheckConstraintBuilder>)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>, String, String)

Configures a database check constraint when targeting a relational database.

HasCheckConstraint<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<CheckConstraintBuilder>)

Configures a database check constraint when targeting a relational database.

HasComment(EntityTypeBuilder, String)

Configures a comment to be applied to the table

HasComment(IConventionEntityTypeBuilder, String, Boolean)

Configures a comment to be applied to the table

HasComment<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures a comment to be applied to the table

HasDiscriminator(EntityTypeBuilder)

Configures the discriminator column used to identify which entity type each row in a table represents when an inheritance hierarchy is mapped to a single table in a relational database.

HasDiscriminator(EntityTypeBuilder, String, Type)

Configures the discriminator column used to identify which entity type each row in a table represents when an inheritance hierarchy is mapped to a single table in a relational database.

HasDiscriminator<TDiscriminator>(EntityTypeBuilder, String)

Configures the discriminator column used to identify which entity type each row in a table represents when an inheritance hierarchy is mapped to a single table in a relational database.

HasDiscriminator<TEntity,TDiscriminator>(EntityTypeBuilder<TEntity>, Expression<Func<TEntity,TDiscriminator>>)

Configures the discriminator column used to identify which entity type each row in a table represents when an inheritance hierarchy is mapped to a single table in a relational database.

ToFunction(EntityTypeBuilder, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(EntityTypeBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(EntityTypeBuilder, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(EntityTypeBuilder, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(IConventionEntityTypeBuilder, MethodInfo, Boolean)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(IConventionEntityTypeBuilder, String, Boolean)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction(OwnedNavigationBuilder, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, MethodInfo)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, MethodInfo, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String)

Configures the function that the entity type maps to when targeting a relational database.

ToFunction<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Action<TableValuedFunctionBuilder>)

Configures the function that the entity type maps to when targeting a relational database.

ToSchema(IConventionEntityTypeBuilder, String, Boolean)

Configures the schema of the table that the entity type maps to when targeting a relational database.

ToSqlQuery(EntityTypeBuilder, String)

Configures a SQL string used to provide data for the entity type.

ToSqlQuery(IConventionEntityTypeBuilder, String, Boolean)

Configures a SQL string used to provide data for the entity type.

ToSqlQuery<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures a SQL string used to provide data for the entity type.

ToTable(EntityTypeBuilder, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(EntityTypeBuilder, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(EntityTypeBuilder, String, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(EntityTypeBuilder, String, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(EntityTypeBuilder, String, String, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(IConventionEntityTypeBuilder, String, Boolean)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(IConventionEntityTypeBuilder, String, String, Boolean)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(OwnedNavigationBuilder, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(OwnedNavigationBuilder, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(OwnedNavigationBuilder, String, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(OwnedNavigationBuilder, String, Boolean)
Obsolete.

Configures the table that the entity type maps to when targeting a relational database.

ToTable(OwnedNavigationBuilder, String, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(OwnedNavigationBuilder, String, String, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable(OwnedNavigationBuilder, String, String, Boolean)
Obsolete.

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, Action<TableBuilder<TEntity>>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableBuilder<TEntity>>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<TableBuilder<TEntity>>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<TableBuilder>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, Action<TableBuilder<TRelatedEntity>>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Action<TableBuilder<TRelatedEntity>>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, Boolean)
Obsolete.

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String, Action<TableBuilder<TRelatedEntity>>)

Configures the table that the entity type maps to when targeting a relational database.

ToTable<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String, Boolean)
Obsolete.

Configures the table that the entity type maps to when targeting a relational database.

ToView(EntityTypeBuilder, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView(EntityTypeBuilder, String, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView(IConventionEntityTypeBuilder, String, Boolean)

Configures the view that the entity type maps to when targeting a relational database.

ToView(IConventionEntityTypeBuilder, String, String, Boolean)

Configures the view that the entity type maps to when targeting a relational database.

ToView(OwnedNavigationBuilder, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView(OwnedNavigationBuilder, String, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView<TOwnerEntity,TRelatedEntity>(OwnedNavigationBuilder<TOwnerEntity,TRelatedEntity>, String, String)

Configures the view that the entity type maps to when targeting a relational database.

ToViewSchema(IConventionEntityTypeBuilder, String, Boolean)

Configures the schema of the view that the entity type maps to when targeting a relational database.

Applies to