Partager via


OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.Ignore Méthode

Définition

Surcharges

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

Exclut la propriété donnée du type d’entité. Cette méthode est généralement utilisée pour supprimer des propriétés ou des navigations du type d’entité détenu qui ont été ajoutées par convention.

Ignore(String)

Exclut la propriété donnée du type d’entité. Cette méthode est généralement utilisée pour supprimer des propriétés ou des navigations du type d’entité détenu qui ont été ajoutées par convention.

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

Exclut la propriété donnée du type d’entité. Cette méthode est généralement utilisée pour supprimer des propriétés ou des navigations du type d’entité détenu qui ont été ajoutées par convention.

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

Paramètres

propertyExpression
Expression<Func<TDependentEntity,Object>>

Expression lambda représentant la propriété à ignorer (blog => blog.Url).

Retours

OwnedNavigationBuilder<TEntity,TDependentEntity>

S’applique à

Ignore(String)

Exclut la propriété donnée du type d’entité. Cette méthode est généralement utilisée pour supprimer des propriétés ou des navigations du type d’entité détenu qui ont été ajoutées par convention.

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

Paramètres

propertyName
String

Nom de la propriété à supprimer du type d’entité.

Retours

OwnedNavigationBuilder<TEntity,TDependentEntity>

S’applique à