18 lines
548 B
C#
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);
|
|||
|
}
|