Add project files.

This commit is contained in:
Sergio Matias Urquin
2025-04-29 18:39:57 -06:00
parent 116793710f
commit 6358f5f199
110 changed files with 4484 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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<SampleItem> BlueprintTests { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.Entity<SampleItem>().Property(p => p.Id).HasConversion(a => a, b => b);
}
}
}