共用方式為


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

對應至查詢來源的運算式。

適用於