Language

ICodeModelService.GetModelMetadata(ModelType) メソッド

定義

Datacontext を使用せずに、特定のモデルのメタデータを取得します。 datacontext がない場合、メタデータはナビゲーション/主キーなしで構成されます。

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Web::CodeGeneration::EntityFrameworkCore::ContextProcessingResult ^> ^ GetModelMetadata(Microsoft::VisualStudio::Web::CodeGeneration::ModelType ^ modelType);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.ContextProcessingResult> GetModelMetadata(Microsoft.VisualStudio.Web.CodeGeneration.ModelType modelType);
abstract member GetModelMetadata : Microsoft.VisualStudio.Web.CodeGeneration.ModelType -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.ContextProcessingResult>
Public Function GetModelMetadata (modelType As ModelType) As Task(Of ContextProcessingResult)

パラメーター

modelType
ModelType

EF メタデータのモデル型を返す必要があります。

返品

ContextProcessingResult を返します。

適用対象