ComplexPropertyBuilder<TComplex>.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(Expression<Func<TComplex,Object>>) |
Excludes the given property from the entity type. This method is typically used to remove properties or navigations from the entity type that were added by convention. |
Ignore(String) |
Excludes the given property from the entity type. This method is typically used to remove properties or navigations from the entity type that were added by convention. |
Ignore(Expression<Func<TComplex,Object>>)
- Source:
- ComplexPropertyBuilder%60.cs
- Source:
- ComplexPropertyBuilder%60.cs
Excludes the given property from the entity type. This method is typically used to remove properties or navigations from the entity type that were added by convention.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> Ignore (System.Linq.Expressions.Expression<Func<TComplex,object?>> propertyExpression);
override this.Ignore : System.Linq.Expressions.Expression<Func<'Complex, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function Ignore (propertyExpression As Expression(Of Func(Of TComplex, Object))) As ComplexPropertyBuilder(Of TComplex)
Parameters
- propertyExpression
- Expression<Func<TComplex,Object>>
A lambda expression representing the property to be ignored
(blog => blog.Url
).
Returns
Applies to
Ignore(String)
- Source:
- ComplexPropertyBuilder%60.cs
- Source:
- ComplexPropertyBuilder%60.cs
Excludes the given property from the entity type. This method is typically used to remove properties or navigations from the entity type that were added by convention.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<TComplex> Ignore (string propertyName);
override this.Ignore : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder<'Complex>
Public Overridable Function Ignore (propertyName As String) As ComplexPropertyBuilder(Of TComplex)
Parameters
- propertyName
- String
The name of the property to be removed from the entity type.
Returns
Applies to
Entity Framework