testade calibre
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
using Bibblan.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
@@ -6,6 +9,10 @@ builder.Services.AddControllers();
|
||||
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
|
||||
builder.Services.AddOpenApi();
|
||||
|
||||
var db = "metadata.db";
|
||||
var connection = $"Data Source={db};Mode=ReadOnly;";
|
||||
builder.Services.AddDbContext<CalibreContext>(options => options.UseSqlite(connection));
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.UseDefaultFiles();
|
||||
|
Reference in New Issue
Block a user