EntityMappingConfiguration<TEntityType> Class

 

Configures the table and column mapping for an entity type or a sub-set of properties from an entity type. This configuration functionality is available via the Code First Fluent API, see DbModelBuilder.

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration<TEntityType>

public class EntityMappingConfiguration<TEntityType>
where TEntityType : class

Type Parameters

TEntityType

The entity type to be mapped.

NameDescription
System_CAPS_pubmethodEntityMappingConfiguration<TEntityType>()

Initializes a new instance of the EntityMappingConfiguration<TEntityType> class.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for a particular type.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.

System_CAPS_pubmethodHasTableAnnotation(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.

System_CAPS_pubmethodMapInheritedProperties()

Re-maps all properties inherited from base types. When configuring a derived type to be mapped to a separate table this will cause all properties to be included in the table rather than just the non-inherited properties. This is known as Table per Concrete Type (TPC) mapping.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodProperties<TObject>(Expression<Func<TEntityType, TObject>>)

Configures the properties that will be included in this mapping fragment. If this method is not called then all properties that have not yet been included in a mapping fragment will be configured.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, Byte[]>>)

Configures a T:System.byte[] property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, DateTime>>)

Configures a DateTime property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, DateTimeOffset>>)

Configures a DateTimeOffset property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, DbGeography>>)

Configures a T:DbGeography property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, DbGeometry>>)

Configures a T:DbGeometry property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, Decimal>>)

Configures a T:System.decimal property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, Nullable<DateTime>>>)

Configures a T:System.DateTime? property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, Nullable<DateTimeOffset>>>)

Configures a T:System.DateTimeOffset? property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, Nullable<Decimal>>>)

Configures a T:System.decimal? property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, Nullable<TimeSpan>>>)

Configures a T:System.TimeSpan? property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, String>>)

Configures a T:System.string property that is included in this mapping fragment.

System_CAPS_pubmethodProperty(Expression<Func<TEntityType, TimeSpan>>)

Configures a TimeSpan property that is included in this mapping fragment.

System_CAPS_pubmethodProperty<T>(Expression<Func<TEntityType, T>>)

Configures a T:System.struct property that is included in this mapping fragment.

System_CAPS_pubmethodProperty<T>(Expression<Func<TEntityType, Nullable<T>>>)

Configures a T:System.struct? property that is included in this mapping fragment.

System_CAPS_pubmethodRequires(String)

Configures the discriminator column used to differentiate between types in an inheritance hierarchy.

System_CAPS_pubmethodRequires<TProperty>(Expression<Func<TEntityType, TProperty>>)

Configures the discriminator condition used to differentiate between types in an inheritance hierarchy.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Overrides Object.ToString().)

System_CAPS_pubmethodToTable(String)

Configures the table name to be mapped to.

System_CAPS_pubmethodToTable(String, String)

Configures the table name and schema to be mapped to.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.