ICodeModelService.GetModelMetadata(ModelType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定模型的中繼資料,而不使用 DatacoNtext。 如果沒有 datacoNtext,中繼資料將不包含 Navigations/ Primary keys。
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 中繼資料的模型類型。