ConventionTypeConfiguration<T> 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<T> where T : class
type ConventionTypeConfiguration<'T (requires 'T : null)> = class
Public Class ConventionTypeConfiguration(Of T)

Type Parameters

T

A type inherited by the entity type.

Inheritance
ConventionTypeConfiguration<T>

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<TProperty>(Expression<Func<T,TProperty>>)

Configures the primary key property(s) 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<TProperty>(Expression<Func<T,TProperty>>)

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<ModificationStoredProceduresConfiguration<T>>)

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

Property<TProperty>(Expression<Func<T,TProperty>>)

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