using Microsoft.EntityFrameworkCore;
using System.Data.Common;

namespace TestApp.Models
{
    public class DatabaseContext : DbContext
    {
        public DatabaseContext(DbContextOptions<DatabaseContext> options) : base(options) { }

        public DbSet<Testentity> Testentity { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            //modelBuilder.Entity<Testentity>().HasData(
            //    new Testentity { Id = 1, Name = "Test Entity 1", Description = "This is the first test entity." },
            //    new Testentity { Id = 2, Name = "Test Entity 2", Description = "This is the second test entity." }
            //);

        }

    }
}
