Got the new ui flow working and the models updated. Need to get changes written to the database.

This commit is contained in:
Vincent Allen
2025-08-11 10:02:45 -04:00
parent a28663441e
commit dd3968f6ef
456 changed files with 17237 additions and 3851 deletions

View File

@@ -0,0 +1,28 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenArchival.DataAccess;
static class Program
{
public static void Main(string[] args)
{
// In Program.cs
var builder = WebApplication.CreateBuilder(args);
// Retrieve the connection string from appsettings.json
var connectionString = builder.Configuration.GetConnectionString("PostgresConnection");
// Add the DbContext to the dependency injection container
builder.Services.AddDbContext<ArchiveDbContext>(options =>
options.UseNpgsql(connectionString));
var app = builder.Build();
app.Run();
}
};