CollectionOwnershipBuilder<TEntity,TDependentEntity>.Ignore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Ignore(Expression<Func<TDependentEntity,Object>>) |
从实体类型中排除给定属性。 此方法通常用于从按约定添加的自有实体类型中删除属性。 |
Ignore(String) |
从实体类型中排除给定属性。 此方法通常用于从按约定添加的自有实体类型中删除属性。 |
Ignore(Expression<Func<TDependentEntity,Object>>)
从实体类型中排除给定属性。 此方法通常用于从按约定添加的自有实体类型中删除属性。
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>>
表示要 (blog => blog.Url
) 忽略的属性的 lambda 表达式。
返回
适用于
Ignore(String)
从实体类型中排除给定属性。 此方法通常用于从按约定添加的自有实体类型中删除属性。
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
然后要从实体类型中删除的属性的名称。