can't transform without word boundary, apparently
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit

This commit is contained in:
adam 2024-12-13 15:07:48 -05:00
parent 37541e45d3
commit 75381d62a7
5 changed files with 9 additions and 9 deletions

View File

@ -5,12 +5,12 @@ using $REPO_NAME.Models;
namespace $REPO_NAME;
public partial class $REPO_NAMEDBContext : DbContext
public partial class $REPO_NAME_DBContext : DbContext
{
public DbSet<GreetCounter> Channels { get; set; }
public $REPO_NAMEDBContext() { }
public $REPO_NAMEDBContext(DbContextOptions<$REPO_NAMEDBContext> options) : base(options) { }
public $REPO_NAME_DBContext() { }
public $REPO_NAME_DBContext(DbContextOptions<$REPO_NAME_DBContext> options) : base(options) { }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseNpgsql(Shared.DBConnectionString);

View File

@ -1,6 +1,6 @@
$REPO_NAME.csproj
$REPO_NAME.service
$REPO_NAMEDBContext.cs
$REPO_NAME_DBContext.cs
appsettings.sample.json
Components/_Imports.razor
Components/App.razor
@ -10,7 +10,7 @@ devuitls.sh
Jenkinsfile
Migrations/20241213175020_greets.cs
Migrations/20241213175020_greets.Designer.cs
Migrations/Test236DBContextModelSnapshot.cs
Migrations/$REPO_NAME_DBContextModelSnapshot.cs
Models/GreetCounter.cs
Program.cs
README.md

View File

@ -10,8 +10,8 @@ using $REPO_NAME;
namespace $REPO_NAME.Migrations
{
[DbContext(typeof($REPO_NAMEDBContext))]
partial class $REPO_NAMEDBContextModelSnapshot : ModelSnapshot
[DbContext(typeof($REPO_NAME_DBContext))]
partial class $REPO_NAME_DBContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{

View File

@ -11,7 +11,7 @@ using $REPO_NAME;
namespace $REPO_NAME.Migrations
{
[DbContext(typeof($REPO_NAMEDBContext))]
[DbContext(typeof($REPO_NAME_DBContext))]
[Migration("20241213175020_greets")]
partial class greets
{

View File

@ -34,7 +34,7 @@ app.UseStaticFiles();
app.UseAntiforgery();
app.MapGet("/hi", () => {
var db = new $REPO_NAMEDBContext();
var db = new $REPO_NAME_DBContext();
var greetcount = db.Greets.FirstOrDefault();
if(greetcount == null)
{