QueryCompilationContext.AddOrUpdateMapping 方法

定义

重载

AddOrUpdateMapping(IQuerySource, IEntityType)

获取映射到给定查询源的实体类型

AddOrUpdateMapping(IQuerySource, Expression)

添加或更新映射到查询源的表达式。

AddOrUpdateMapping(IQuerySource, IEntityType)

获取映射到给定查询源的实体类型

public virtual void AddOrUpdateMapping (Remotion.Linq.Clauses.IQuerySource querySource, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member AddOrUpdateMapping : Remotion.Linq.Clauses.IQuerySource * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
override this.AddOrUpdateMapping : Remotion.Linq.Clauses.IQuerySource * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
Public Overridable Sub AddOrUpdateMapping (querySource As IQuerySource, entityType As IEntityType)

参数

querySource
Remotion.Linq.Clauses.IQuerySource
entityType
IEntityType

适用于

AddOrUpdateMapping(IQuerySource, Expression)

添加或更新映射到查询源的表达式。

public virtual void AddOrUpdateMapping (Remotion.Linq.Clauses.IQuerySource querySource, System.Linq.Expressions.Expression expression);
abstract member AddOrUpdateMapping : Remotion.Linq.Clauses.IQuerySource * System.Linq.Expressions.Expression -> unit
override this.AddOrUpdateMapping : Remotion.Linq.Clauses.IQuerySource * System.Linq.Expressions.Expression -> unit
Public Overridable Sub AddOrUpdateMapping (querySource As IQuerySource, expression As Expression)

参数

querySource
Remotion.Linq.Clauses.IQuerySource

查询源。

expression
Expression

映射到查询源的表达式。

适用于