2024-12-13 14:30:08 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using $REPO_NAME.Models;
|
|
|
|
|
|
|
|
|
|
namespace $REPO_NAME;
|
|
|
|
|
|
2024-12-13 15:12:41 -05:00
|
|
|
|
public partial class greynsvcDBContext : DbContext
|
2024-12-13 14:30:08 -05:00
|
|
|
|
{
|
|
|
|
|
public DbSet<GreetCounter> Channels { get; set; }
|
|
|
|
|
|
2024-12-13 15:12:41 -05:00
|
|
|
|
public greynsvcDBContext() { }
|
|
|
|
|
public greynsvcDBContext(DbContextOptions<greynsvcDBContext> options) : base(options) { }
|
2024-12-13 14:30:08 -05:00
|
|
|
|
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
|
|
|
=> optionsBuilder.UseNpgsql(Shared.DBConnectionString);
|
|
|
|
|
}
|