共用方式為


CollectionOwnershipBuilder<TEntity,TDependentEntity>.Ignore 方法

定義

多載

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

從實體類型中排除指定的屬性。 這個方法通常用來從慣例新增的自有實體類型中移除屬性。

Ignore(String)

從實體類型中排除指定的屬性。 這個方法通常用來從慣例新增的自有實體類型中移除屬性。

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

來源:
CollectionOwnershipBuilder%60.cs

從實體類型中排除指定的屬性。 這個方法通常用來從慣例新增的自有實體類型中移除屬性。

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

參數

propertyExpression
Expression<Func<TDependentEntity,Object>>

Lambda 運算式,表示要忽略 blog => blog.Url () 的屬性。

傳回

適用於

Ignore(String)

來源:
CollectionOwnershipBuilder%60.cs

從實體類型中排除指定的屬性。 這個方法通常用來從慣例新增的自有實體類型中移除屬性。

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

參數

propertyName
String

要從實體類型中移除之 屬性的名稱。

傳回

適用於