Bagikan melalui


OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.Ignore Metode

Definisi

Overload

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

Mengecualikan properti yang diberikan dari jenis entitas. Metode ini biasanya digunakan untuk menghapus properti atau navigasi dari jenis entitas yang dimiliki yang ditambahkan oleh konvensi.

Ignore(String)

Mengecualikan properti yang diberikan dari jenis entitas. Metode ini biasanya digunakan untuk menghapus properti atau navigasi dari jenis entitas yang dimiliki yang ditambahkan oleh konvensi.

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

Mengecualikan properti yang diberikan dari jenis entitas. Metode ini biasanya digunakan untuk menghapus properti atau navigasi dari jenis entitas yang dimiliki yang ditambahkan oleh konvensi.

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)

Parameter

propertyExpression
Expression<Func<TDependentEntity,Object>>

Ekspresi lambda yang mewakili properti yang akan diabaikan (blog => blog.Url).

Mengembalikan

OwnedNavigationBuilder<TEntity,TDependentEntity>

Berlaku untuk

Ignore(String)

Mengecualikan properti yang diberikan dari jenis entitas. Metode ini biasanya digunakan untuk menghapus properti atau navigasi dari jenis entitas yang dimiliki yang ditambahkan oleh konvensi.

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)

Parameter

propertyName
String

Nama properti yang akan dihapus dari jenis entitas.

Mengembalikan

OwnedNavigationBuilder<TEntity,TDependentEntity>

Berlaku untuk