ADD-MIGRATION
This commit is contained in:
parent
e2b33cc7ac
commit
fc2e0905ea
File diff suppressed because one or more lines are too long
82
GrossesMitaines/GrossesMitainesAPI/Migrations/20221008175642_Initial-Db.Designer.cs
generated
Normal file
82
GrossesMitaines/GrossesMitainesAPI/Migrations/20221008175642_Initial-Db.Designer.cs
generated
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,3 +1,6 @@
|
||||
using GrossesMitainesAPI.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
@ -7,11 +10,12 @@ builder.Services.AddControllers();
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
builder.Services.AddDbContextFactory<InventoryContext>(options => { options.UseSqlServer("DefaultConnection"); });
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
if (app.Environment.IsDevelopment()) {
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user