ConventionTypeConfiguration<T>.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() |
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. |
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<T> Ignore ();
member this.Ignore : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<'T (requires 'T : null)>
Public Function Ignore () As ConventionTypeConfiguration(Of T)
Returns
The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.
Applies to
Ignore<TProperty>(Expression<Func<T,TProperty>>)
Excludes a property from the model so that it will not be mapped to the database.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<T> Ignore<TProperty> (System.Linq.Expressions.Expression<Func<T,TProperty>> propertyExpression);
member this.Ignore : System.Linq.Expressions.Expression<Func<'T, 'Property>> -> System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration<'T (requires 'T : null)>
Public Function Ignore(Of TProperty) (propertyExpression As Expression(Of Func(Of T, TProperty))) As ConventionTypeConfiguration(Of T)
Type Parameters
- TProperty
The type of the property to be ignored.
Parameters
- propertyExpression
- Expression<Func<T,TProperty>>
A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty
Returns
The same ConventionTypeConfiguration<T> instance so that multiple calls can be chained.
- Attributes
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