語言

CompiledModelCodeGenerationOptions 類別

定義

代表在產生編譯模型元資料程式碼時可使用的選項。

[System.Runtime.CompilerServices.Nullable(0)]
public class CompiledModelCodeGenerationOptions
public class CompiledModelCodeGenerationOptions
[<System.Runtime.CompilerServices.Nullable(0)>]
type CompiledModelCodeGenerationOptions = class
type CompiledModelCodeGenerationOptions = class
Public Class CompiledModelCodeGenerationOptions
繼承
CompiledModelCodeGenerationOptions
屬性

建構函式

名稱 Description
CompiledModelCodeGenerationOptions()

代表在產生編譯模型元資料程式碼時可使用的選項。

屬性

名稱 Description
ContextType

取得或設定對應 DbContext 的型別。

ForNativeAot

取得或設定一個值,表示所產生的程式碼是否應與 NativeAOT 相容。

GeneratedFileNames

取得或設定目前產生的檔案名稱集合。

Language

取得或設定程式語言作為支架。

ModelNamespace

取得或設定模型元資料類別的命名空間。

ProviderName

取得或設定資料庫提供者名稱嵌入編譯後的模型中。

Suffix

取得或設定後綴,將它附加到所有產生的檔案名稱上。

UseNullableReferenceTypes

取得或設定一個值,指示是否啟用可空的參考型別。

適用於