IPrecompiledQueryCodeGenerator.GeneratePrecompiledQueries Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Generiert den vorkompilierten Abfragecode.
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedFile> GeneratePrecompiledQueries(Microsoft.CodeAnalysis.Compilation compilation, Microsoft.CodeAnalysis.Editing.SyntaxGenerator syntaxGenerator, Microsoft.EntityFrameworkCore.DbContext dbContext, System.Collections.Generic.IReadOnlyDictionary<System.Reflection.MemberInfo,Microsoft.EntityFrameworkCore.Design.Internal.QualifiedName> memberAccessReplacements, System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Query.Internal.PrecompiledQueryCodeGenerator.QueryPrecompilationError> precompilationErrors, System.Collections.Generic.ISet<string> generatedFileNames, System.Reflection.Assembly? assembly = default, string? suffix = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GeneratePrecompiledQueries : Microsoft.CodeAnalysis.Compilation * Microsoft.CodeAnalysis.Editing.SyntaxGenerator * Microsoft.EntityFrameworkCore.DbContext * System.Collections.Generic.IReadOnlyDictionary<System.Reflection.MemberInfo, Microsoft.EntityFrameworkCore.Design.Internal.QualifiedName> * System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Query.Internal.PrecompiledQueryCodeGenerator.QueryPrecompilationError> * System.Collections.Generic.ISet<string> * System.Reflection.Assembly * string * System.Threading.CancellationToken -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedFile>
Public Function GeneratePrecompiledQueries (compilation As Compilation, syntaxGenerator As SyntaxGenerator, dbContext As DbContext, memberAccessReplacements As IReadOnlyDictionary(Of MemberInfo, QualifiedName), precompilationErrors As List(Of PrecompiledQueryCodeGenerator.QueryPrecompilationError), generatedFileNames As ISet(Of String), Optional assembly As Assembly = Nothing, Optional suffix As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IReadOnlyList(Of ScaffoldedFile)
Parameter
- compilation
- Compilation
Die Kompilierung.
- syntaxGenerator
- SyntaxGenerator
Der Syntaxgenerator.
- dbContext
- DbContext
Der Kontext.
- memberAccessReplacements
- IReadOnlyDictionary<MemberInfo,Microsoft.EntityFrameworkCore.Design.Internal.QualifiedName>
Die Memberzugriffsersetzungen.
- precompilationErrors
- List<Microsoft.EntityFrameworkCore.Query.Internal.PrecompiledQueryCodeGenerator.QueryPrecompilationError>
Eine Liste, die Vorkompilierungsfehler enthält.
- assembly
- Assembly
Die Assembly, die der bereitgestellten Kompilierung entspricht.
- suffix
- String
Suffix, das an den Namen aller generierten Dateien angefügt werden soll.
- cancellationToken
- CancellationToken
Das Abbruchtoken.
Gibt zurück
Die Dateien, die vorkompilierten Abfragecode enthalten.