can't transform without word boundary, apparently
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
This commit is contained in:
parent
37541e45d3
commit
75381d62a7
@ -5,12 +5,12 @@ using $REPO_NAME.Models;
|
|||||||
|
|
||||||
namespace $REPO_NAME;
|
namespace $REPO_NAME;
|
||||||
|
|
||||||
public partial class $REPO_NAMEDBContext : DbContext
|
public partial class $REPO_NAME_DBContext : DbContext
|
||||||
{
|
{
|
||||||
public DbSet<GreetCounter> Channels { get; set; }
|
public DbSet<GreetCounter> Channels { get; set; }
|
||||||
|
|
||||||
public $REPO_NAMEDBContext() { }
|
public $REPO_NAME_DBContext() { }
|
||||||
public $REPO_NAMEDBContext(DbContextOptions<$REPO_NAMEDBContext> options) : base(options) { }
|
public $REPO_NAME_DBContext(DbContextOptions<$REPO_NAME_DBContext> options) : base(options) { }
|
||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
=> optionsBuilder.UseNpgsql(Shared.DBConnectionString);
|
=> optionsBuilder.UseNpgsql(Shared.DBConnectionString);
|
@ -1,6 +1,6 @@
|
|||||||
$REPO_NAME.csproj
|
$REPO_NAME.csproj
|
||||||
$REPO_NAME.service
|
$REPO_NAME.service
|
||||||
$REPO_NAMEDBContext.cs
|
$REPO_NAME_DBContext.cs
|
||||||
appsettings.sample.json
|
appsettings.sample.json
|
||||||
Components/_Imports.razor
|
Components/_Imports.razor
|
||||||
Components/App.razor
|
Components/App.razor
|
||||||
@ -10,7 +10,7 @@ devuitls.sh
|
|||||||
Jenkinsfile
|
Jenkinsfile
|
||||||
Migrations/20241213175020_greets.cs
|
Migrations/20241213175020_greets.cs
|
||||||
Migrations/20241213175020_greets.Designer.cs
|
Migrations/20241213175020_greets.Designer.cs
|
||||||
Migrations/Test236DBContextModelSnapshot.cs
|
Migrations/$REPO_NAME_DBContextModelSnapshot.cs
|
||||||
Models/GreetCounter.cs
|
Models/GreetCounter.cs
|
||||||
Program.cs
|
Program.cs
|
||||||
README.md
|
README.md
|
||||||
|
@ -10,8 +10,8 @@ using $REPO_NAME;
|
|||||||
|
|
||||||
namespace $REPO_NAME.Migrations
|
namespace $REPO_NAME.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof($REPO_NAMEDBContext))]
|
[DbContext(typeof($REPO_NAME_DBContext))]
|
||||||
partial class $REPO_NAMEDBContextModelSnapshot : ModelSnapshot
|
partial class $REPO_NAME_DBContextModelSnapshot : ModelSnapshot
|
||||||
{
|
{
|
||||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
2
Migrations/20241213175020_greets.Designer.cs
generated
2
Migrations/20241213175020_greets.Designer.cs
generated
@ -11,7 +11,7 @@ using $REPO_NAME;
|
|||||||
|
|
||||||
namespace $REPO_NAME.Migrations
|
namespace $REPO_NAME.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof($REPO_NAMEDBContext))]
|
[DbContext(typeof($REPO_NAME_DBContext))]
|
||||||
[Migration("20241213175020_greets")]
|
[Migration("20241213175020_greets")]
|
||||||
partial class greets
|
partial class greets
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ app.UseStaticFiles();
|
|||||||
app.UseAntiforgery();
|
app.UseAntiforgery();
|
||||||
|
|
||||||
app.MapGet("/hi", () => {
|
app.MapGet("/hi", () => {
|
||||||
var db = new $REPO_NAMEDBContext();
|
var db = new $REPO_NAME_DBContext();
|
||||||
var greetcount = db.Greets.FirstOrDefault();
|
var greetcount = db.Greets.FirstOrDefault();
|
||||||
if(greetcount == null)
|
if(greetcount == null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user