using Microsoft.EntityFrameworkCore; using Lab9.Models; namespace Lab9.Context { public class NewsContext : DbContext { public NewsContext(DbContextOptions options) : base(options) { } public DbSet News { get; set; } public DbSet Users { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("News"); modelBuilder.Entity().ToTable("Users"); } } }