QueryCompilationContext.AddOrUpdateMapping Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddOrUpdateMapping(IQuerySource, IEntityType) |
Gets the entity type mapped to the given query source |
AddOrUpdateMapping(IQuerySource, Expression) |
Adds or updates the expression mapped to a query source. |
AddOrUpdateMapping(IQuerySource, IEntityType)
- Source:
- QueryCompilationContext.cs
- Source:
- QueryCompilationContext.cs
Gets the entity type mapped to the given query source
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)
Parameters
- querySource
- Remotion.Linq.Clauses.IQuerySource
- entityType
- IEntityType
Applies to
AddOrUpdateMapping(IQuerySource, Expression)
- Source:
- QueryCompilationContext.cs
- Source:
- QueryCompilationContext.cs
Adds or updates the expression mapped to a query source.
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)
Parameters
- querySource
- Remotion.Linq.Clauses.IQuerySource
The query source.
- expression
- Expression
The expression mapped to the query source.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework