ConventionTypeConfiguration.Ignore Method
Excludes this entity type from the model so that it will not be mapped to the database.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | 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. |
ConventionTypeConfiguration.Ignore Method ()
Excludes this entity type from the model so that it will not be mapped to the database.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfigurationThe same ConventionTypeConfiguration instance so that multiple calls can be chained.
ConventionTypeConfiguration.Ignore Method (PropertyInfo)
Excludes a property from the model so that it will not be mapped to the database.
Parameters
- propertyInfo
-
Type:
System.Reflection.PropertyInfo
The property to be configured.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfigurationThe same ConventionTypeConfiguration instance so that multiple calls can be chained.
Calling this will have no effect if the property does not exist.
ConventionTypeConfiguration.Ignore Method (String)
Excludes a property from the model so that it will not be mapped to the database.
Parameters
- propertyName
-
Type:
System.String
The name of the property to be configured.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfigurationThe same ConventionTypeConfiguration instance so that multiple calls can be chained.
Calling this will have no effect if the property does not exist.