Language

IPrecompiledQueryCodeGenerator.GeneratePrecompiledQueries メソッド

定義

プリコンパイル済みクエリ コードを生成します。

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)

パラメーター

compilation
Compilation

コンパイル。

syntaxGenerator
SyntaxGenerator

構文ジェネレーター。

dbContext
DbContext

コンテキスト。

memberAccessReplacements
IReadOnlyDictionary<MemberInfo,Microsoft.EntityFrameworkCore.Design.Internal.QualifiedName>

メンバー アクセスの置換。

precompilationErrors
List<Microsoft.EntityFrameworkCore.Query.Internal.PrecompiledQueryCodeGenerator.QueryPrecompilationError>

プリコンパイル エラーを含むリスト。

generatedFileNames
ISet<String>

これまでに生成されたファイル名のセット。

assembly
Assembly

指定されたコンパイルに対応するアセンブリ。

suffix
String

生成されたすべてのファイルの名前にアタッチするサフィックス。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

プリコンパイル済みクエリ コードを含むファイル。

適用対象