using Microsoft.EntityFrameworkCore; using RecordMyRuck.Models; var builder = WebApplication.CreateBuilder(args); builder.Services.AddControllersWithViews(); builder.Services.AddDbContext(options => { options.UseSqlite(builder.Configuration["ConnectionStrings:AppDb"]); }); builder.Services.AddScoped(); var app = builder.Build(); if (app.Environment.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.MapDefaultControllerRoute(); app.Run();