From d01f14531d6bf43d32457f099319bee7d2d0b760 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 13 Dec 2024 15:12:41 -0500 Subject: [PATCH] ... underscores, either. --- .gitea/template | 3 +-- ...xtModelSnapshot.cs => greynsvcDBContextModelSnapshot.cs} | 4 ++-- $REPO_NAME_DBContext.cs => greynsvcDBContext.cs | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) rename Migrations/{$REPO_NAME_DBContextModelSnapshot.cs => greynsvcDBContextModelSnapshot.cs} (90%) rename $REPO_NAME_DBContext.cs => greynsvcDBContext.cs (62%) diff --git a/.gitea/template b/.gitea/template index e4b4af6..2997504 100644 --- a/.gitea/template +++ b/.gitea/template @@ -1,6 +1,5 @@ $REPO_NAME.csproj $REPO_NAME.service -$REPO_NAME_DBContext.cs appsettings.sample.json Components/_Imports.razor Components/App.razor @@ -10,7 +9,7 @@ devuitls.sh Jenkinsfile Migrations/20241213175020_greets.cs Migrations/20241213175020_greets.Designer.cs -Migrations/$REPO_NAME_DBContextModelSnapshot.cs +Migrations/greynsvcDBContextModelSnapshot.cs Models/GreetCounter.cs Program.cs README.md diff --git a/Migrations/$REPO_NAME_DBContextModelSnapshot.cs b/Migrations/greynsvcDBContextModelSnapshot.cs similarity index 90% rename from Migrations/$REPO_NAME_DBContextModelSnapshot.cs rename to Migrations/greynsvcDBContextModelSnapshot.cs index 2491de3..2f8fa1c 100644 --- a/Migrations/$REPO_NAME_DBContextModelSnapshot.cs +++ b/Migrations/greynsvcDBContextModelSnapshot.cs @@ -10,8 +10,8 @@ using $REPO_NAME; namespace $REPO_NAME.Migrations { - [DbContext(typeof($REPO_NAME_DBContext))] - partial class $REPO_NAME_DBContextModelSnapshot : ModelSnapshot + [DbContext(typeof(greynsvcDBContext))] + partial class greynsvcDBContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { diff --git a/$REPO_NAME_DBContext.cs b/greynsvcDBContext.cs similarity index 62% rename from $REPO_NAME_DBContext.cs rename to greynsvcDBContext.cs index 88f3eb3..0e4a60a 100644 --- a/$REPO_NAME_DBContext.cs +++ b/greynsvcDBContext.cs @@ -5,12 +5,12 @@ using $REPO_NAME.Models; namespace $REPO_NAME; -public partial class $REPO_NAME_DBContext : DbContext +public partial class greynsvcDBContext : DbContext { public DbSet Channels { get; set; } - public $REPO_NAME_DBContext() { } - public $REPO_NAME_DBContext(DbContextOptions<$REPO_NAME_DBContext> options) : base(options) { } + public greynsvcDBContext() { } + public greynsvcDBContext(DbContextOptions options) : base(options) { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) => optionsBuilder.UseNpgsql(Shared.DBConnectionString);