Document models

This commit is contained in:
2021-12-30 22:11:20 -08:00
parent a0767fb566
commit 518191f5c6
3 changed files with 58 additions and 2 deletions

View File

@@ -1,16 +1,33 @@
using Microsoft.EntityFrameworkCore;
using System;
using TwilioSMSReceiver.Data.Models;
namespace TwilioSMSReceiver.Data
{
/// <summary>
/// The database context
/// </summary>
public class SMSDbCtx : DbContext
{
/// <summary>
/// The main DB Context base constructor for this database context
/// </summary>
/// <param name="options">The usual options for EF Core Database if called outside of a DI Scope</param>
[Obsolete("Don't call this directly unless you're calling it from EF Core")]
public SMSDbCtx(DbContextOptions options) : base(options)
{
}
/// <summary>
/// Received SMS Messages
/// </summary>
public DbSet<SMSModel> SMSMessages { get; set; }
/// <summary>
/// Received MMS Message data
/// </summary>
public DbSet<MMSModel> MMSMessages { get; set; }
/// <summary>
/// Teams WebHooks we should be spamming to
/// </summary>
public DbSet<MSTeamsWebHook> MSTeamsWebHooks { get; set; }
}
}