[성현모] 스캐폴드 옵션추가
This commit is contained in:
@ -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.
@ -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");
|
||||||
|
|
||||||
|
|||||||
@ -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!;
|
||||||
|
|
||||||
Reference in New Issue
Block a user