_template-service/$REPO_NAMEDBContext.cs
adam fc574d5002
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
it's going to be a dotnet service, let's be real.
and you're getting a database, if you don't like it remove it.
2024-12-13 14:30:08 -05:00

18 lines
548 B
C#

using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
using $REPO_NAME.Models;
namespace $REPO_NAME;
public partial class $REPO_NAMEDBContext : DbContext
{
public DbSet<GreetCounter> Channels { get; set; }
public $REPO_NAMEDBContext() { }
public $REPO_NAMEDBContext(DbContextOptions<$REPO_NAMEDBContext> options) : base(options) { }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseNpgsql(Shared.DBConnectionString);
}