_template-service/$REPO_NAME_DBContext.cs
adam 75381d62a7
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
can't transform without word boundary, apparently
2024-12-13 15:07:48 -05:00

18 lines
552 B
C#

using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using $REPO_NAME.Models;
namespace $REPO_NAME;
public partial class $REPO_NAME_DBContext : DbContext
{
public DbSet<GreetCounter> Channels { get; set; }
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);
}