Move db context out of the main api project
This commit is contained in:
16
TwilioSMSReceiver.Data/SMSDbCtx.cs
Normal file
16
TwilioSMSReceiver.Data/SMSDbCtx.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using TwilioSMSReceiver.Data.Models;
|
||||
|
||||
namespace TwilioSMSReceiver.Data
|
||||
{
|
||||
public class SMSDbCtx : DbContext
|
||||
{
|
||||
public SMSDbCtx(DbContextOptions options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<SMSModel> SMSMessages { get; set; }
|
||||
public DbSet<MMSModel> MMSMessages { get; set; }
|
||||
public DbSet<MSTeamsWebHook> MSTeamsWebHooks { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user