_template-service/greynsvcDBContext.cs

18 lines
538 B
C#
Raw Normal View History

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 16:14:48 -05:00
public DbSet<GreetCounter> Greets { get; set; }
2024-12-13 15:12:41 -05:00
public greynsvcDBContext() { }
public greynsvcDBContext(DbContextOptions<greynsvcDBContext> options) : base(options) { }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseNpgsql(Shared.DBConnectionString);
}