You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mchsamples-.net-core/AlertSoftwareKit/AlertWebAPI/Models/AlertDbContext.cs

30 lines
897 B

// ========================================================================
//
// 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
{
/// <summary>
/// This classe deriving from DbContext allows CRUD operations on the model.
/// It owns a DbSet<T> allowing CRUD operations on type T, here AlertItem.
/// </summary>
public class AlertDbContext : DbContext
{
public AlertDbContext(DbContextOptions<AlertDbContext> options)
: base(options)
{
}
public DbSet<AlertItem> AlertItems { get; set; }
}
}