继 首次使用DoNetCore EFCore DbFirst 更新数据实体

//EFCore DB First 步骤
        //第一步:Install-Package Microsoft.EntityFrameworkCore.SqlServer -version 2.1.1

        //第二步:Install-Package Microsoft.EntityFrameworkCore.Tools -version 2.1.1

        //第三部:Install-Package Microsoft.EntityFrameworkCore.Design -version 2.1.1

        //第四部:Install-Package Microsoft.EntityFrameworkCore.SqlServer.Design

        //第五步:Scaffold-DbContext -Connection "Data Source=139.159.252.186;Initial Catalog=DB;User ID=sa;Password=sa186!@#;MultipleActiveResultSets=true" -Provider "Microsoft.EntityFrameworkCore.SqlServer" -OutputDir "EntityModel"

        //第六部更新实体:Scaffold-DbContext -Connection "Data Source=139.159.252.186;Initial Catalog=DB;User ID=sa;Password=sa186!@#;MultipleActiveResultSets=true" -Provider "Microsoft.EntityFrameworkCore.SqlServer" -OutputDir "EntityModel" -Force

  具体细节,请查阅官网

posted @ 2019-04-02 14:05  垣瑾  阅读(933)  评论(0编辑  收藏  举报