// ======================================================================== // // Copyright (C) 2017-2018 MARC CHEVALDONNE // marc.chevaldonne.free.fr // // Module : AlertDbContext.cs // Author : Marc Chevaldonné // Creation date : 2018-02-12 // // ======================================================================== using Microsoft.EntityFrameworkCore; namespace AlertWebAPI.Models { /// /// This classe deriving from DbContext allows CRUD operations on the model. /// It owns a DbSet allowing CRUD operations on type T, here AlertItem. /// public class AlertDbContext : DbContext { public AlertDbContext(DbContextOptions options) : base(options) { } public DbSet AlertItems { get; set; } } }