using Manarah.Domain; using Microsoft.EntityFrameworkCore; namespace Manarah.App.Data { public class ManarahContext:DbContext { public ManarahContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable(nameof(Server)); modelBuilder.Entity().HasKey(model => model.IPAddress); } public DbSet Servers { get; set; } } }