Share via


ReferenceOwnershipBuilder<TEntity,TRelatedEntity>.Ignore Method

Definition

Overloads

Ignore(Expression<Func<TRelatedEntity,Object>>)

Excludes the given property from the entity type. This method is typically used to remove properties from the owned 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 from the owned entity type that were added by convention.

Ignore(Expression<Func<TRelatedEntity,Object>>)

Excludes the given property from the entity type. This method is typically used to remove properties from the owned entity type that were added by convention.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> Ignore (System.Linq.Expressions.Expression<Func<TRelatedEntity,object>> propertyExpression);
override this.Ignore : System.Linq.Expressions.Expression<Func<'RelatedEntity, obj>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Overridable Function Ignore (propertyExpression As Expression(Of Func(Of TRelatedEntity, Object))) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)

Parameters

propertyExpression
Expression<Func<TRelatedEntity,Object>>

A lambda expression representing the property to be ignored (blog => blog.Url).

Returns

Applies to

Ignore(String)

Excludes the given property from the entity type. This method is typically used to remove properties from the owned entity type that were added by convention.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<TEntity,TRelatedEntity> Ignore (string propertyName);
override this.Ignore : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ReferenceOwnershipBuilder<'Entity, 'RelatedEntity (requires 'Entity : null and 'RelatedEntity : null)>
Public Overridable Function Ignore (propertyName As String) As ReferenceOwnershipBuilder(Of TEntity, TRelatedEntity)

Parameters

propertyName
String

The name of then property to be removed from the entity type.

Returns

Applies to