語言

CollectionOwnershipBuilder<TEntity,TDependentEntity>.Ignore 方法

定義

多載

名稱 Description
Ignore(Expression<Func<TDependentEntity,Object>>)

將該屬性排除在實體類型之外。 此方法通常用於移除慣例新增的擁有實體類型中的屬性。

Ignore(String)

將該屬性排除在實體類型之外。 此方法通常用於移除慣例新增的擁有實體類型中的屬性。

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

來源:
CollectionOwnershipBuilder`.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`.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

該物業名稱將從實體類型中移除。

傳回

適用於