[성현모] UniqueKeyDB Scaffold 스크립트 추가, DLL 빌드 이벤트 배치로 변경

This commit is contained in:
SHM
2025-08-04 11:35:30 +09:00
parent 1db24651ca
commit d138088df9
13 changed files with 70 additions and 15 deletions

View File

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace SystemX.Core.DB;
public partial class UniqueKeyDBContext : DbContext
{
public UniqueKeyDBContext(DbContextOptions<UniqueKeyDBContext> options)
: base(options)
{
}
public virtual DbSet<tUniqueKeyStorage> tUniqueKeyStorages { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<tUniqueKeyStorage>(entity =>
{
entity.HasKey(e => e.cIdentity).HasName("PK__tUniqueK__3EBC650DADDCD506");
entity.ToTable("tUniqueKeyStorage");
entity.Property(e => e.cIdentity).HasMaxLength(200);
entity.Property(e => e.cData1).HasMaxLength(4000);
entity.Property(e => e.cData2).HasMaxLength(4000);
entity.Property(e => e.cData3).HasMaxLength(4000);
entity.Property(e => e.cData4).HasMaxLength(4000);
entity.Property(e => e.cData5).HasMaxLength(4000);
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace SystemX.Core.DB;
public partial class tUniqueKeyStorage
{
public string cIdentity { get; set; } = null!;
public DateTime cDateTime { get; set; }
public string? cData1 { get; set; }
public string? cData2 { get; set; }
public string? cData3 { get; set; }
public string? cData4 { get; set; }
public string? cData5 { get; set; }
}