diff --git a/CFPCompass.sln b/CFPCompass.sln
index f4acd18..e9bcc88 100644
--- a/CFPCompass.sln
+++ b/CFPCompass.sln
@@ -7,6 +7,8 @@ Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "SQLDatabase", "src\SQLDatab
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{837BF340-B0AF-4B2D-AC69-D550AE5B4CB2}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLData", "SQLData\SQLData.csproj", "{F4A66304-0B96-434A-9B1C-67327E0F1768}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -23,6 +25,10 @@ Global
{837BF340-B0AF-4B2D-AC69-D550AE5B4CB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{837BF340-B0AF-4B2D-AC69-D550AE5B4CB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{837BF340-B0AF-4B2D-AC69-D550AE5B4CB2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F4A66304-0B96-434A-9B1C-67327E0F1768}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F4A66304-0B96-434A-9B1C-67327E0F1768}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F4A66304-0B96-434A-9B1C-67327E0F1768}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F4A66304-0B96-434A-9B1C-67327E0F1768}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/ConsoleApp/ConsoleApp.csproj b/ConsoleApp/ConsoleApp.csproj
index 1147dd6..968b0b2 100644
--- a/ConsoleApp/ConsoleApp.csproj
+++ b/ConsoleApp/ConsoleApp.csproj
@@ -19,4 +19,8 @@
+
+
+
+
diff --git a/ConsoleApp/GlobalUsings.cs b/ConsoleApp/GlobalUsings.cs
index 460f3af..82a06b0 100644
--- a/ConsoleApp/GlobalUsings.cs
+++ b/ConsoleApp/GlobalUsings.cs
@@ -1,8 +1,9 @@
global using Azure.Identity;
-global using ConsoleApp.Models;
global using Microsoft.EntityFrameworkCore;
global using Microsoft.Extensions.Configuration;
global using Microsoft.Extensions.Configuration.AzureAppConfiguration;
global using Octokit;
global using Spectre.Console;
+global using SQLData;
+global using SQLData.Models;
global using System.Text;
\ No newline at end of file
diff --git a/ConsoleApp/Models/CFPCompassContext.cs b/SQLData/CFPCompassContext.cs
similarity index 98%
rename from ConsoleApp/Models/CFPCompassContext.cs
rename to SQLData/CFPCompassContext.cs
index ba0346a..679bbf4 100644
--- a/ConsoleApp/Models/CFPCompassContext.cs
+++ b/SQLData/CFPCompassContext.cs
@@ -1,4 +1,7 @@
-namespace ConsoleApp.Models;
+using Microsoft.EntityFrameworkCore;
+using SQLData.Models;
+
+namespace SQLData;
public partial class CFPCompassContext(DbContextOptions options) : DbContext(options)
{
@@ -26,7 +29,7 @@ public static CFPCompassContext CreateDbContext(string connectionString)
public virtual DbSet ShindigTypes { get; set; }
- public virtual DbSet TimeZones { get; set; }
+ public virtual DbSet TimeZones { get; set; }
public virtual DbSet WorldRegions { get; set; }
@@ -292,7 +295,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
entity.Property(e => e.SortOrder).HasComment("The sorting order of the shindig type.");
});
- modelBuilder.Entity(entity =>
+ modelBuilder.Entity(entity =>
{
entity.HasKey(e => e.Id).HasName("pkcTimeZone");
diff --git a/ConsoleApp/Models/Cfp.cs b/SQLData/Models/Cfp.cs
similarity index 94%
rename from ConsoleApp/Models/Cfp.cs
rename to SQLData/Models/Cfp.cs
index bf632bc..c5fd3e5 100644
--- a/ConsoleApp/Models/Cfp.cs
+++ b/SQLData/Models/Cfp.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
public partial class CFP
{
diff --git a/ConsoleApp/Models/Cfptype.cs b/SQLData/Models/Cfptype.cs
similarity index 89%
rename from ConsoleApp/Models/Cfptype.cs
rename to SQLData/Models/Cfptype.cs
index 4e09d6d..c8cc0c5 100644
--- a/ConsoleApp/Models/Cfptype.cs
+++ b/SQLData/Models/Cfptype.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
public partial class CFPType
{
diff --git a/ConsoleApp/Models/Country.cs b/SQLData/Models/Country.cs
similarity index 97%
rename from ConsoleApp/Models/Country.cs
rename to SQLData/Models/Country.cs
index b764679..2d97bd9 100644
--- a/ConsoleApp/Models/Country.cs
+++ b/SQLData/Models/Country.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
///
/// Lookup table representing the countries as defined by the ISO 3166-1 standard.
diff --git a/ConsoleApp/Models/CountryDivision.cs b/SQLData/Models/CountryDivision.cs
similarity index 96%
rename from ConsoleApp/Models/CountryDivision.cs
rename to SQLData/Models/CountryDivision.cs
index bdd8dcb..dc9e195 100644
--- a/ConsoleApp/Models/CountryDivision.cs
+++ b/SQLData/Models/CountryDivision.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
///
/// Lookup table representing the world regions as defined by the ISO 3166-2 standard.
diff --git a/ConsoleApp/Models/Language.cs b/SQLData/Models/Language.cs
similarity index 94%
rename from ConsoleApp/Models/Language.cs
rename to SQLData/Models/Language.cs
index f69854e..9a32055 100644
--- a/ConsoleApp/Models/Language.cs
+++ b/SQLData/Models/Language.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
///
/// Represents a spoken/written language.
diff --git a/ConsoleApp/Models/Shindig.cs b/SQLData/Models/Shindig.cs
similarity index 97%
rename from ConsoleApp/Models/Shindig.cs
rename to SQLData/Models/Shindig.cs
index 42f667a..73b6782 100644
--- a/ConsoleApp/Models/Shindig.cs
+++ b/SQLData/Models/Shindig.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
public partial class Shindig
{
diff --git a/ConsoleApp/Models/ShindigStatus.cs b/SQLData/Models/ShindigStatus.cs
similarity index 95%
rename from ConsoleApp/Models/ShindigStatus.cs
rename to SQLData/Models/ShindigStatus.cs
index cdc5ed7..4c90408 100644
--- a/ConsoleApp/Models/ShindigStatus.cs
+++ b/SQLData/Models/ShindigStatus.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
///
/// Represents a status of a shindig.
diff --git a/ConsoleApp/Models/ShindigType.cs b/SQLData/Models/ShindigType.cs
similarity index 95%
rename from ConsoleApp/Models/ShindigType.cs
rename to SQLData/Models/ShindigType.cs
index ac64617..ba51249 100644
--- a/ConsoleApp/Models/ShindigType.cs
+++ b/SQLData/Models/ShindigType.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
///
/// Represents a type of a shindig.
diff --git a/ConsoleApp/Models/TimeZone.cs b/SQLData/Models/TimeZone.cs
similarity index 96%
rename from ConsoleApp/Models/TimeZone.cs
rename to SQLData/Models/TimeZone.cs
index 2248e40..aff4800 100644
--- a/ConsoleApp/Models/TimeZone.cs
+++ b/SQLData/Models/TimeZone.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
///
/// Represents the list of time zones as defined by the IANA.
diff --git a/ConsoleApp/Models/WorldRegion.cs b/SQLData/Models/WorldRegion.cs
similarity index 96%
rename from ConsoleApp/Models/WorldRegion.cs
rename to SQLData/Models/WorldRegion.cs
index 20c74ce..6ea36f1 100644
--- a/ConsoleApp/Models/WorldRegion.cs
+++ b/SQLData/Models/WorldRegion.cs
@@ -1,4 +1,4 @@
-namespace ConsoleApp.Models;
+namespace SQLData.Models;
///
/// Lookup table representing the world regions as defined by the UN M49 specification.
diff --git a/SQLData/SQLData.csproj b/SQLData/SQLData.csproj
new file mode 100644
index 0000000..69113e8
--- /dev/null
+++ b/SQLData/SQLData.csproj
@@ -0,0 +1,13 @@
+
+
+
+ net9.0
+ enable
+ enable
+
+
+
+
+
+
+