using Core.Blueprint.Domain.Entities; using Microsoft.EntityFrameworkCore; namespace Core.Blueprint.DAL.Infrastructure.Context { public sealed class SqlServerContext : DbContext { public SqlServerContext(DbContextOptions options) : base(options) { } public DbSet BlueprintTests { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity().Property(p => p.Id).HasConversion(a => a, b => b); } } }