語言

SqliteRuntimeModelConvention 類別

定義

一種建立可變模型優化副本的慣例。

[System.Runtime.CompilerServices.Nullable(0)]
public class SqliteRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalRuntimeModelConvention
public class SqliteRuntimeModelConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.RelationalRuntimeModelConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqliteRuntimeModelConvention = class
    inherit RelationalRuntimeModelConvention
type SqliteRuntimeModelConvention = class
    inherit RelationalRuntimeModelConvention
Public Class SqliteRuntimeModelConvention
Inherits RelationalRuntimeModelConvention
繼承
屬性

備註

更多資訊與範例請參閱 模型建構慣例及使用 EF Core 存取 SQLite 資料庫 。

建構函式

名稱 Description
SqliteRuntimeModelConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

建立一個新的 實例。SqliteRuntimeModelConvention

屬性

名稱 Description
Dependencies

此服務的依賴關係。

(繼承來源 RuntimeModelConvention)
RelationalDependencies

此服務的關聯提供者專屬相依關係。

(繼承來源 RelationalRuntimeModelConvention)

方法

名稱 Description
Create(IModel)

在提供的模型基礎上建立優化模型。

(繼承來源 RuntimeModelConvention)
GetForeignKey(IForeignKey, RuntimeEntityType)

在讀取優化模型中取得對應的外鍵。

(繼承來源 RuntimeModelConvention)
GetIndex(IIndex, RuntimeEntityType)

取得讀取最佳化模型中對應的索引。

(繼承來源 RuntimeModelConvention)
GetKey(IKey, RuntimeEntityType)

在讀取最佳化模型中取得相應的金鑰。

(繼承來源 RuntimeModelConvention)
ProcessComplexPropertyAnnotations(Dictionary<String,Object>, IComplexProperty, RuntimeComplexProperty, Boolean)

更新將被設定在唯讀物件上的屬性註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessComplexTypeAnnotations(Dictionary<String,Object>, IComplexType, RuntimeComplexType, Boolean)

更新將被設定在唯讀物件上的複雜型別註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessElementTypeAnnotations(Dictionary<String,Object>, IElementType, RuntimeElementType, Boolean)

更新將被設定在唯讀物件上的元素類型註解。

(繼承來源 RuntimeModelConvention)
ProcessEntityTypeAnnotations(Dictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

更新將被設定在唯讀物件上的實體類型註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessEntityTypeAnnotations(IDictionary<String,Object>, IEntityType, RuntimeEntityType, Boolean)

更新將被設定在唯讀物件上的實體類型註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessEntityTypeMappingFragmentAnnotations(Dictionary<String,Object>, IEntityTypeMappingFragment, RuntimeEntityTypeMappingFragment, Boolean)

更新關聯性質會覆蓋只會在唯讀物件上設定的註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessForeignKeyAnnotations(Dictionary<String,Object>, IForeignKey, RuntimeForeignKey, Boolean)

更新將被設定在唯讀物件上的外鍵註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessFunctionAnnotations(Dictionary<String,Object>, IDbFunction, RuntimeDbFunction, Boolean)

更新將被設定在唯讀物件上的函式註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessFunctionParameterAnnotations(Dictionary<String,Object>, IDbFunctionParameter, RuntimeDbFunctionParameter, Boolean)

更新將被設定在唯讀物件上的函式參數註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessIndexAnnotations(Dictionary<String,Object>, IIndex, RuntimeIndex, Boolean)

更新將被設定在唯讀物件上的索引註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessKeyAnnotations(Dictionary<String,Object>, IKey, RuntimeKey, Boolean)

更新將被設定在唯讀物件上的金鑰註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessKeyAnnotations(IDictionary<String,Object>, IKey, RuntimeKey, Boolean)

更新將被設定在唯讀物件上的金鑰註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessModelAnnotations(Dictionary<String,Object>, IModel, RuntimeModel, Boolean)

更新將被設定在唯讀物件上的模型註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessModelFinalized(IModel)

在模型確定且無法再變異後被召喚。

(繼承來源 RuntimeModelConvention)
ProcessNavigationAnnotations(Dictionary<String,Object>, INavigation, RuntimeNavigation, Boolean)

更新將被設定在唯讀物件上的導航註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessPropertyAnnotations(Dictionary<String,Object>, IProperty, RuntimeProperty, Boolean)

更新將被設定在唯讀物件上的屬性註解。

ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

更新關聯性質會覆蓋只會在唯讀物件上設定的註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessPropertyOverridesAnnotations(Dictionary<String,Object>, IRelationalPropertyOverrides, RuntimeRelationalPropertyOverrides, Boolean)

更新關聯性質會覆蓋只會在唯讀物件上設定的註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessSequenceAnnotations(Dictionary<String,Object>, ISequence, RuntimeSequence, Boolean)

更新將被設定在唯讀物件上的序列註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessServicePropertyAnnotations(Dictionary<String,Object>, IServiceProperty, RuntimeServiceProperty, Boolean)

更新將被設定在唯讀物件上的服務屬性註解。

(繼承來源 RuntimeModelConvention)
ProcessSkipNavigationAnnotations(Dictionary<String,Object>, ISkipNavigation, RuntimeSkipNavigation, Boolean)

更新將被設定在唯讀物件上的跳過導覽註解。

(繼承來源 RuntimeModelConvention)
ProcessStoredProcedureAnnotations(Dictionary<String,Object>, IStoredProcedure, RuntimeStoredProcedure, Boolean)

更新將被設定在唯讀物件上的儲存程序註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessStoredProcedureParameterAnnotations(Dictionary<String,Object>, IStoredProcedureParameter, RuntimeStoredProcedureParameter, Boolean)

更新將被設定在唯讀物件上的儲存程序參數註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessStoredProcedureResultColumnAnnotations(Dictionary<String,Object>, IStoredProcedureResultColumn, RuntimeStoredProcedureResultColumn, Boolean)

更新將被設定在唯讀物件上的儲存程序結果欄位註解。

(繼承來源 RelationalRuntimeModelConvention)
ProcessTriggerAnnotations(Dictionary<String,Object>, ITrigger, RuntimeTrigger, Boolean)

更新將被設定在唯讀物件上的觸發註解。

(繼承來源 RuntimeModelConvention)
ProcessTypeMappingConfigurationAnnotations(Dictionary<String,Object>, ITypeMappingConfiguration, RuntimeTypeMappingConfiguration, Boolean)

更新將被設定在唯讀物件上的屬性註解。

(繼承來源 RuntimeModelConvention)

適用於