mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 19:04:12 +02:00
pooko
This commit is contained in:
19
Models/AppDbContext.cs
Normal file
19
Models/AppDbContext.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using yaflay.ru.Models.Tables;
|
||||
|
||||
namespace yaflay.ru.Models
|
||||
{
|
||||
public class AppDbContext : DbContext
|
||||
{
|
||||
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) {}
|
||||
|
||||
public DbSet<Blogs> Blogs { get; set; }
|
||||
public DbSet<Comments> Comments { get; set; }
|
||||
public DbSet<Redirects> Redirects { get; set; }
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user