Share via


ConventionTypeConfiguration Class

Definition

Allows configuration to be performed for an entity type in a model. This configuration functionality is available via lightweight conventions.

public class ConventionTypeConfiguration
type ConventionTypeConfiguration = class
Public Class ConventionTypeConfiguration
Inheritance
ConventionTypeConfiguration

Properties

ClrType

Gets the Type of this entity type.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetType()

Gets the Type of the current instance.

HasEntitySetName(String)

Configures the entity set name to be used for this entity type. The entity set name can only be configured for the base type in each set.

HasKey(IEnumerable<PropertyInfo>)

Configures the primary key property(s) for this entity type.

HasKey(IEnumerable<String>)

Configures the primary key property(s) for this entity type.

HasKey(PropertyInfo)

Configures the primary key property for this entity type.

HasKey(String)

Configures the primary key property for this entity type.

HasTableAnnotation(String, Object)

Sets an annotation in the model for the table to which this entity is mapped. The annotation value can later be used when processing the table such as when creating migrations.

Ignore()

Excludes this entity type from the model so that it will not be mapped to the database.

Ignore(PropertyInfo)

Excludes a property from the model so that it will not be mapped to the database.

Ignore(String)

Excludes a property from the model so that it will not be mapped to the database.

IsComplexType()

Changes this entity type to a complex type.

MapToStoredProcedures()

Configures this type to use stored procedures for insert, update and delete. The default conventions for procedure and parameter names will be used.

MapToStoredProcedures(Action<ConventionModificationStoredProceduresConfiguration>)

Configures this type to use stored procedures for insert, update and delete.

Property(PropertyInfo)

Configures a property that is defined on this type.

Property(String)

Configures a property that is defined on this type.

ToString()

Returns a string that represents the current object.

ToTable(String, String)

Configures the table name that this entity type is mapped to.

ToTable(String)

Configures the table name that this entity type is mapped to.

Applies to