示例#1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();

            services.AddEntityFrameworkMySql()
            .AddDbContext <ProjectNameContext>(options => options TODO
                                               .UseMySql(Configuration["ConnectionStrings:DefaultConnection"]));
        }