Skip to content

Instantly share code, notes, and snippets.

using EFCoreSeparateProject.Core.Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace EFCoreSeparateProject.Infrastructure.EntityConfigurations
{
public class PersonConfiguration : IEntityTypeConfiguration<Person>
{
public void Configure(EntityTypeBuilder<Person> builder)
{
public ExampleDbContext(DbContextOptions options) : base(options)
{
}
public DbSet<Person> Persons { get; set; }
public ExampleDbContext(DbContextOptions options) : base(options)
{
}