Udostępnij za pośrednictwem


OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.Ignore Metoda

Definicja

Przeciążenia

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

Wyklucza daną właściwość z typu jednostki. Ta metoda jest zwykle używana do usuwania właściwości lub nawigacji z typu jednostki należącej do użytkownika, które zostały dodane przez konwencję.

Ignore(String)

Wyklucza daną właściwość z typu jednostki. Ta metoda jest zwykle używana do usuwania właściwości lub nawigacji z typu jednostki należącej do użytkownika, które zostały dodane przez konwencję.

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

Wyklucza daną właściwość z typu jednostki. Ta metoda jest zwykle używana do usuwania właściwości lub nawigacji z typu jednostki należącej do użytkownika, które zostały dodane przez konwencję.

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)

Parametry

propertyExpression
Expression<Func<TDependentEntity,Object>>

Wyrażenie lambda reprezentujące właściwość do zignorowania (blog => blog.Url).

Zwraca

OwnedNavigationBuilder<TEntity,TDependentEntity>

Dotyczy

Ignore(String)

Wyklucza daną właściwość z typu jednostki. Ta metoda jest zwykle używana do usuwania właściwości lub nawigacji z typu jednostki należącej do użytkownika, które zostały dodane przez konwencję.

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)

Parametry

propertyName
String

Nazwa właściwości, która ma zostać usunięta z typu jednostki.

Zwraca

OwnedNavigationBuilder<TEntity,TDependentEntity>

Dotyczy