_template-service/$REPO_NAMEDBContext.cs

18 lines
548 B
C#
Raw Normal View History

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);
}