diff --git a/TinyPOS/TinyPosDBGen/Program.cs b/TinyPOS/TinyPosDBGen/Program.cs index c02084a..ab2329a 100644 --- a/TinyPOS/TinyPosDBGen/Program.cs +++ b/TinyPOS/TinyPosDBGen/Program.cs @@ -17,6 +17,10 @@ namespace TinyPosDBGen string userId = "sa"; string userPassword = ""; + Console.WriteLine("데이터베이스를 초기화합니다."); + Console.WriteLine("(※※※ 경고: 기존 데이터베이스 데이터는 모두 삭제됩니다. ※※※)"); + Console.WriteLine(); + InputValue("서버 이름", ref source); InputValue("데이터베이스 이름", ref catalog); InputValue("인증 사용자 계정", ref userId); @@ -33,7 +37,7 @@ namespace TinyPosDBGen Console.WriteLine("초기화가 완료되었습니다."); Console.WriteLine(); Console.WriteLine("종료를 위해 아무키나 누르세요."); - Console.ReadLine(); + Console.ReadKey(); //Student student = new Student() //{ // StudentName = "테스트용", diff --git a/TinyPOS/TinyPosEntity/EntityController.cs b/TinyPOS/TinyPosEntity/EntityController.cs index d6d8a0b..2a18ed4 100644 --- a/TinyPOS/TinyPosEntity/EntityController.cs +++ b/TinyPOS/TinyPosEntity/EntityController.cs @@ -45,30 +45,13 @@ namespace TinyPosEntity private List GetDefaultProductTypes() { List productTypeList = new List(); - productTypeList.Add(new ProductType() - { - Name = "담배" - }); - productTypeList.Add(new ProductType() - { - Name = "주류" - }); - productTypeList.Add(new ProductType() - { - Name = "음료" - }); - productTypeList.Add(new ProductType() - { - Name = "생필품" - }); - productTypeList.Add(new ProductType() - { - Name = "과자" - }); - productTypeList.Add(new ProductType() - { - Name = "기타" - }); + productTypeList.Add(new ProductType() { Name = "담배" }); + productTypeList.Add(new ProductType() { Name = "주류" }); + productTypeList.Add(new ProductType() { Name = "음료" }); + productTypeList.Add(new ProductType() { Name = "과자" }); + productTypeList.Add(new ProductType() { Name = "식료품" }); + productTypeList.Add(new ProductType() { Name = "잡화" }); + productTypeList.Add(new ProductType() { Name = "기타" }); return productTypeList; }