From df5c5480d8ebb1615e67781d86205a76ae06efd7 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 13 Jun 2025 18:27:11 -0400 Subject: [PATCH] Removing SQL Convert project --- IGP_Convert/IGP_Convert.csproj | 28 ---------------------------- IGP_Convert/Program.cs | 34 ---------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 IGP_Convert/IGP_Convert.csproj delete mode 100644 IGP_Convert/Program.cs diff --git a/IGP_Convert/IGP_Convert.csproj b/IGP_Convert/IGP_Convert.csproj deleted file mode 100644 index eb63227..0000000 --- a/IGP_Convert/IGP_Convert.csproj +++ /dev/null @@ -1,28 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - diff --git a/IGP_Convert/Program.cs b/IGP_Convert/Program.cs deleted file mode 100644 index 0f0a43e..0000000 --- a/IGP_Convert/Program.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Text.Json; -using Contexts; -using Microsoft.EntityFrameworkCore; - -var webProjectName = "IGP"; -var projectPath = $"{Environment.CurrentDirectory}/../../../.."; -var webPath = $"{projectPath}/{webProjectName}/wwwroot/generated"; - -var options = new DbContextOptionsBuilder(); -options.UseSqlite($"Filename={projectPath}/{webProjectName}/Database.db"); - -// Load our database -using (var db = new DatabaseContext(options.Options)) -{ - // And save data in format Blazor Wasm can use - File.WriteAllTextAsync($"{webPath}/GitPatchModels.json", JsonSerializer.Serialize(db.GitPatchModels)); - File.WriteAllTextAsync($"{webPath}/GitChangeModels.json", JsonSerializer.Serialize(db.GitChangeModels)); - File.WriteAllTextAsync($"{webPath}/AgileSprintModels.json", JsonSerializer.Serialize(db.AgileSprintModels)); - File.WriteAllTextAsync($"{webPath}/AgileTaskModels.json", JsonSerializer.Serialize(db.AgileTaskModels)); - File.WriteAllTextAsync($"{webPath}/WebSectionModels.json", JsonSerializer.Serialize(db.WebSectionModels)); - File.WriteAllTextAsync($"{webPath}/WebPageModels.json", JsonSerializer.Serialize(db.WebPageModels)); - - File.WriteAllTextAsync($"{webPath}/DocContentModels.json", JsonSerializer.Serialize(db.DocContentModels)); - File.WriteAllTextAsync($"{webPath}/DocConnectionModels.json", JsonSerializer.Serialize(db.DocConnectionModels)); - File.WriteAllTextAsync($"{webPath}/DocSectionModels.json", JsonSerializer.Serialize(db.DocSectionModels)); - - File.WriteAllTextAsync($"{webPath}/NoteContentModels.json", JsonSerializer.Serialize(db.NoteContentModels)); - File.WriteAllTextAsync($"{webPath}/NoteConnectionModels.json", JsonSerializer.Serialize(db.NoteConnectionModels)); - File.WriteAllTextAsync($"{webPath}/NoteSectionModels.json", JsonSerializer.Serialize(db.NoteSectionModels)); - - // Set date variable - db.Variables.Find("LastUpdated")!.Value = $"{DateTime.Now:MMMM dd, yyyy}"; - File.WriteAllTextAsync($"{webPath}/Variables.json", JsonSerializer.Serialize(db.Variables)); -} \ No newline at end of file