Answers for "Connection String2"

0

Connection String2

public void ConfigureServices(IServiceCollection services)
{
    services.AddDbContext<AppDbContext>(options =>
        options.UseSqlServer(Configuration.GetConnectionString("DBConnection")));

    services.AddControllers();
}
Posted by: Guest on April-03-2022

Browse Popular Code Answers by Language