[성현모] UniqueKeyDB Scaffold 스크립트 추가, DLL 빌드 이벤트 배치로 변경
This commit is contained in:
@ -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);
|
||||
}
|
||||
@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user