ICodeModelService.GetModelMetadata(ModelType) Method

Definition

Gets the metadata for a given model without using the Datacontext. Without the datacontext, the metadata will consist of no 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)

Parameters

modelType
ModelType

Model type for the EF metadata has to be returned.

Returns

Task<ContextProcessingResult>

Returns ContextProcessingResult.

Applies to