adam
75381d62a7
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
18 lines
552 B
C#
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);
|
|
}
|