[성현모] 스캐폴드 옵션추가

This commit is contained in:
SHM
2025-10-30 12:28:28 +09:00
parent bb44f2af79
commit 765f6c6378
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
::AccountDB ::AccountDB
cd ../Projects/SystemX.Core/SystemX.Core.DB cd ../Projects/SystemX.Core/SystemX.Core.DB
dotnet ef dbcontext scaffold "server=127.0.0.1; user id=SystemX; password=X; database=CPMeta; TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer --namespace SystemX.Core.DB --context-dir CPMeta\Context --output-dir CPMeta\Tables -f --use-database-names --no-onconfiguring dotnet ef dbcontext scaffold "server=127.0.0.1; user id=SystemX; password=X; database=CPMeta; TrustServerCertificate=true;" Microsoft.EntityFrameworkCore.SqlServer --namespace SystemX.Core.DB --context-dir CPMeta\Context --output-dir CPMeta\Tables -f --use-database-names --no-pluralize --no-onconfiguring

Binary file not shown.

View File

@ -11,13 +11,13 @@ public partial class CPMetaContext : DbContext
{ {
} }
public virtual DbSet<tWbm> tWbms { get; set; } public virtual DbSet<tWbms> tWbms { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)
{ {
modelBuilder.UseCollation("SQL_Latin1_General_CP1_CI_AS"); modelBuilder.UseCollation("SQL_Latin1_General_CP1_CI_AS");
modelBuilder.Entity<tWbm>(entity => modelBuilder.Entity<tWbms>(entity =>
{ {
entity.HasKey(e => e.cProductID).HasName("PK_cProductKey"); entity.HasKey(e => e.cProductID).HasName("PK_cProductKey");

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace SystemX.Core.DB; namespace SystemX.Core.DB;
public partial class tWbm public partial class tWbms
{ {
public string cProductID { get; set; } = null!; public string cProductID { get; set; } = null!;