Actualiser MetaCourse.Api/Program.cs
This commit is contained in:
@@ -6,10 +6,6 @@ using Microsoft.EntityFrameworkCore.Diagnostics;
|
|||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
// Database
|
|
||||||
builder.Services.AddDbContext<AppDbContext>(options =>
|
|
||||||
options.UseSqlServer("Server=romaric-thibault.fr;Database=arsene_MetaCourseV2;User Id=arsene;Password=Onto9-Cage-Afflicted;TrustServerCertificate=true;")
|
|
||||||
.ConfigureWarnings(w => w.Ignore(RelationalEventId.PendingModelChangesWarning)));
|
|
||||||
|
|
||||||
// AutoMapper
|
// AutoMapper
|
||||||
builder.Services.AddAutoMapper(typeof(Program).Assembly);
|
builder.Services.AddAutoMapper(typeof(Program).Assembly);
|
||||||
|
|||||||
Reference in New Issue
Block a user