ConventionTypeConfiguration.Ignore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Ignore(String) |
Excludes a property from the model so that it will not be mapped to the database. |
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.
public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration Ignore (string propertyName);
member this.Ignore : string -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration
Public Function Ignore (propertyName As String) As ConventionTypeConfiguration
Parameters
- propertyName
- String
The name of the property to be configured.
Returns
The same ConventionTypeConfiguration instance so that multiple calls can be chained.
Remarks
Calling this will have no effect if the property does not exist.
Applies to
Ignore()
Excludes this entity type from the model so that it will not be mapped to the database.
public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration Ignore ();
member this.Ignore : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration
Public Function Ignore () As ConventionTypeConfiguration
Returns
The same ConventionTypeConfiguration instance so that multiple calls can be chained.
Applies to
Ignore(PropertyInfo)
Excludes a property from the model so that it will not be mapped to the database.
public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration Ignore (System.Reflection.PropertyInfo propertyInfo);
member this.Ignore : System.Reflection.PropertyInfo -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration
Parameters
- propertyInfo
- PropertyInfo
The property to be configured.
Returns
The same ConventionTypeConfiguration instance so that multiple calls can be chained.
Remarks
Calling this will have no effect if the property does not exist.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for