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