ICodeModelService.GetModelMetadata(ModelType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns ContextProcessingResult.