[성현모] CPMeta경로 변경, 테이블 이름 수정, 스캐폴드

This commit is contained in:
SHM
2025-10-30 12:24:37 +09:00
parent 24a2eed617
commit bb44f2af79
14 changed files with 20 additions and 21 deletions

View File

@ -53,7 +53,7 @@ END
GO GO
PRINT N'$(DatabaseName) 데이터베이스를 만드는 중...' PRINT N'$(DatabaseName) 데이터베이스를 만드는 중...'
GO GO
CREATE DATABASE [$(DatabaseName)] COLLATE Korean_Wansung_CI_AS CREATE DATABASE [$(DatabaseName)] COLLATE SQL_Latin1_General_CP1_CI_AS
GO GO
USE [$(DatabaseName)]; USE [$(DatabaseName)];
@ -243,11 +243,11 @@ IF fulltextserviceproperty(N'IsFulltextInstalled') = 1
GO GO
PRINT N'테이블 [dbo].[tWbmsMeta]을(를) 만드는 중...'; PRINT N'테이블 [dbo].[tWbms]을(를) 만드는 중...';
GO GO
CREATE TABLE [dbo].[tWbmsMeta] ( CREATE TABLE [dbo].[tWbms] (
[cProductID] NVARCHAR (50) NOT NULL, [cProductID] NVARCHAR (50) NOT NULL,
[cMacAddress] NVARCHAR (50) NULL, [cMacAddress] NVARCHAR (50) NULL,
[cType] NVARCHAR (20) NULL, [cType] NVARCHAR (20) NULL,

Binary file not shown.

Binary file not shown.

View File

@ -6,14 +6,14 @@
<Name>SystemX.DB.CPMeta</Name> <Name>SystemX.DB.CPMeta</Name>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion> <ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{17ab3eb0-6388-401f-96df-e45ba58a548e}</ProjectGuid> <ProjectGuid>{dcc476ba-1dec-4649-b9b7-67ec2a3ab39d}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP> <DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType> <OutputType>Database</OutputType>
<RootPath> <RootPath>
</RootPath> </RootPath>
<RootNamespace>SystemX.DB.CPMeta</RootNamespace> <RootNamespace>SystemX.DB.CPMeta</RootNamespace>
<AssemblyName>SystemX.DB.CPMeta</AssemblyName> <AssemblyName>SystemX.DB.CPMeta</AssemblyName>
<ModelCollation>1042,CI</ModelCollation> <ModelCollation>1033, CI</ModelCollation>
<DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure> <DefaultFileStructure>BySchemaAndSchemaType</DefaultFileStructure>
<DeployToDatabase>True</DeployToDatabase> <DeployToDatabase>True</DeployToDatabase>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
@ -23,7 +23,6 @@
<IncludeCompositeObjects>True</IncludeCompositeObjects> <IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseSet>True</TargetDatabaseSet> <TargetDatabaseSet>True</TargetDatabaseSet>
<GenerateCreateScript>True</GenerateCreateScript> <GenerateCreateScript>True</GenerateCreateScript>
<DefaultCollation>Korean_Wansung_CI_AS</DefaultCollation>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
@ -47,7 +46,6 @@
<DefineTrace>true</DefineTrace> <DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<TreatTSqlWarningsAsErrors>False</TreatTSqlWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
@ -60,10 +58,9 @@
<ItemGroup> <ItemGroup>
<Folder Include="Properties" /> <Folder Include="Properties" />
<Folder Include="dbo" /> <Folder Include="dbo" />
<Folder Include="dbo\Tables" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Build Include="dbo\Tables\tWbmsMeta.sql" /> <Build Include="dbo\tWbmsMeta.sql" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>xcopy /y $(ProjectDir)$(OutputPath)$(TargetName)_Create.sql $(SolutionDir)..\..\DBPatch\sqlScripts\ <PostBuildEvent>xcopy /y $(ProjectDir)$(OutputPath)$(TargetName)_Create.sql $(SolutionDir)..\..\DBPatch\sqlScripts\

View File

@ -1,4 +1,4 @@
CREATE TABLE [dbo].[tWbmsMeta] CREATE TABLE [dbo].[tWbms]
( (
[cProductID] NVARCHAR(50) NOT NULL, [cProductID] NVARCHAR(50) NOT NULL,
[cMacAddress] NVARCHAR(50) NULL, [cMacAddress] NVARCHAR(50) NULL,

View File

@ -11,11 +11,13 @@ public partial class CPMetaContext : DbContext
{ {
} }
public virtual DbSet<tWbmsMetum> tWbmsMeta { get; set; } public virtual DbSet<tWbm> tWbms { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder) protected override void OnModelCreating(ModelBuilder modelBuilder)
{ {
modelBuilder.Entity<tWbmsMetum>(entity => modelBuilder.UseCollation("SQL_Latin1_General_CP1_CI_AS");
modelBuilder.Entity<tWbm>(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 tWbmsMetum public partial class tWbm
{ {
public string cProductID { get; set; } = null!; public string cProductID { get; set; } = null!;

View File

@ -19,7 +19,7 @@ Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "SystemX.DB.CPXV2", "DB\Syst
EndProject EndProject
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "SystemX.DB.CPXV2Log", "DB\SystemX.DB.CPXV2Log\SystemX.DB.CPXV2Log.sqlproj", "{D9439C52-76B5-4908-9B0D-43D1F52EC942}" Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "SystemX.DB.CPXV2Log", "DB\SystemX.DB.CPXV2Log\SystemX.DB.CPXV2Log.sqlproj", "{D9439C52-76B5-4908-9B0D-43D1F52EC942}"
EndProject EndProject
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "SystemX.DB.CPMeta", "SystemX.Core.DB\SystemX.DB.CPMeta\SystemX.DB.CPMeta.sqlproj", "{17AB3EB0-6388-401F-96DF-E45BA58A548E}" Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "SystemX.DB.CPMeta", "DB\SystemX.DB.CPMeta\SystemX.DB.CPMeta.sqlproj", "{DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -65,12 +65,12 @@ Global
{D9439C52-76B5-4908-9B0D-43D1F52EC942}.Release|Any CPU.ActiveCfg = Release|Any CPU {D9439C52-76B5-4908-9B0D-43D1F52EC942}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D9439C52-76B5-4908-9B0D-43D1F52EC942}.Release|Any CPU.Build.0 = Release|Any CPU {D9439C52-76B5-4908-9B0D-43D1F52EC942}.Release|Any CPU.Build.0 = Release|Any CPU
{D9439C52-76B5-4908-9B0D-43D1F52EC942}.Release|Any CPU.Deploy.0 = Release|Any CPU {D9439C52-76B5-4908-9B0D-43D1F52EC942}.Release|Any CPU.Deploy.0 = Release|Any CPU
{17AB3EB0-6388-401F-96DF-E45BA58A548E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{17AB3EB0-6388-401F-96DF-E45BA58A548E}.Debug|Any CPU.Build.0 = Debug|Any CPU {DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{17AB3EB0-6388-401F-96DF-E45BA58A548E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{17AB3EB0-6388-401F-96DF-E45BA58A548E}.Release|Any CPU.ActiveCfg = Release|Any CPU {DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{17AB3EB0-6388-401F-96DF-E45BA58A548E}.Release|Any CPU.Build.0 = Release|Any CPU {DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D}.Release|Any CPU.Build.0 = Release|Any CPU
{17AB3EB0-6388-401F-96DF-E45BA58A548E}.Release|Any CPU.Deploy.0 = Release|Any CPU {DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -81,7 +81,7 @@ Global
{5D374F06-D9FA-4159-BC84-1F3CA506F50E} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52} {5D374F06-D9FA-4159-BC84-1F3CA506F50E} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52}
{3A2D7552-9C12-489F-8A0B-330E000C860D} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52} {3A2D7552-9C12-489F-8A0B-330E000C860D} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52}
{D9439C52-76B5-4908-9B0D-43D1F52EC942} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52} {D9439C52-76B5-4908-9B0D-43D1F52EC942} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52}
{17AB3EB0-6388-401F-96DF-E45BA58A548E} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52} {DCC476BA-1DEC-4649-B9B7-67EC2A3AB39D} = {C8D5274F-AC00-46C7-1F8D-E88E81087A52}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A26A3BD0-2161-41FA-949A-DEA966E8F798} SolutionGuid = {A26A3BD0-2161-41FA-949A-DEA966E8F798}