diff --git a/DbFirst.API/Program.cs b/DbFirst.API/Program.cs index aea4bfd..cfb6fc7 100644 --- a/DbFirst.API/Program.cs +++ b/DbFirst.API/Program.cs @@ -23,9 +23,11 @@ builder.Services.AddCors(options => }); }); +// TODO: Create extension method for this in Infrastructure layer in case of using in multiple projects builder.Services.AddDbContext(options => options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection"))); +// TODO: Create extension method for this in Application layer in case of using in multiple projects builder.Services.AddAutoMapper(typeof(CatalogProfile).Assembly, typeof(ApplicationDbContext).Assembly); builder.Services.AddScoped();