MrWalshyType2 / Noting

Note app with study features written in C# with ASP.NET 5.
0 stars 0 forks source link

Register the db context #5

Closed MrWalshyType2 closed 3 years ago

MrWalshyType2 commented 3 years ago
using <xxx>.Data;
using Microsoft.EntityFrameworkCore;
services.AddDbContext<MvcMovieContext>(options =>
            options.UseSqlServer(Configuration.GetConnectionString("MvcMovieContext")));