DbContextEditorServices.AddModelToContext(ModelType, ModelType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
virtual Microsoft::VisualStudio::Web::CodeGeneration::EntityFrameworkCore::EditSyntaxTreeResult ^ AddModelToContext(Microsoft::VisualStudio::Web::CodeGeneration::ModelType ^ dbContext, Microsoft::VisualStudio::Web::CodeGeneration::ModelType ^ modelType);
public Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.EditSyntaxTreeResult AddModelToContext (Microsoft.VisualStudio.Web.CodeGeneration.ModelType dbContext, Microsoft.VisualStudio.Web.CodeGeneration.ModelType modelType);
abstract member AddModelToContext : Microsoft.VisualStudio.Web.CodeGeneration.ModelType * Microsoft.VisualStudio.Web.CodeGeneration.ModelType -> Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.EditSyntaxTreeResult
override this.AddModelToContext : Microsoft.VisualStudio.Web.CodeGeneration.ModelType * Microsoft.VisualStudio.Web.CodeGeneration.ModelType -> Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore.EditSyntaxTreeResult
Public Function AddModelToContext (dbContext As ModelType, modelType As ModelType) As EditSyntaxTreeResult
参数
- dbContext
- ModelType
- modelType
- ModelType