65 |
--------------------------------------------------------------------------------
/SvelteApp1.Server/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Identity;
2 | using Microsoft.EntityFrameworkCore;
3 | using SvelteApp1.Server.Data;
4 | using System.Security.Claims;
5 |
6 | namespace SvelteApp1.Server
7 | {
8 | public class Program
9 | {
10 | public static void Main(string[] args)
11 | {
12 | var builder = WebApplication.CreateBuilder(args);
13 | var connectionString = builder.Configuration.GetConnectionString("ApplicationDbContextConnection") ?? throw new InvalidOperationException("Connection string 'ApplicationDbContextConnection' not found.");
14 |
15 | builder.Services.AddDbContext