语言

OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.Ignore 方法

定义

重载

名称 说明
Ignore(Expression<Func<TDependentEntity,Object>>)

从实体类型中排除给定属性。 此方法通常用于从约定添加的自有实体类型中删除属性或导航。

Ignore(String)

从实体类型中排除给定属性。 此方法通常用于从约定添加的自有实体类型中删除属性或导航。

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

Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs

从实体类型中排除给定属性。 此方法通常用于从约定添加的自有实体类型中删除属性或导航。

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

参数

propertyExpression
Expression<Func<TDependentEntity,Object>>

一个 lambda 表达式,表示要忽略的属性(blog => blog.Url)。

返回

OwnedNavigationBuilder<TEntity,TDependentEntity>

适用于

Ignore(String)

Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs
Source:
OwnedNavigationBuilder`.cs

从实体类型中排除给定属性。 此方法通常用于从约定添加的自有实体类型中删除属性或导航。

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

参数

propertyName
String

要从实体类型中删除的属性的名称。

返回

OwnedNavigationBuilder<TEntity,TDependentEntity>

适用于