프로젝트

일반

사용자정보

개정판 6c781c0c

ID6c781c0c5641052586c736849b5145d91191ee9d
상위 2ab012e8
하위 19bc11bd

김동진이(가) 6년 이상 전에 추가함

issue #573 : Direct DB Connection Modify
Client Method Modify

차이점 보기:

KCOM/MainWindow.xaml.cs
48 48
            };
49 49
            Telerik.Windows.Controls.RadWindow.Alert(parameters);
50 50
        }
51

  
52
        public void test()
53
        {
54
            using (CIEntities Entity = new CIEntities(KCOMDataModel.Common.ConnectStringBuilder.ProjectCIConnectString(App.ViewInfo.ProjectNO).ToString()))
55
            {
56
                string key = "NXVjTcWcku8d54537cb3ed95a";
57

  
58
                MARKUP_INFO instance = Entity.MARKUP_INFO.Where(root => root.ID == key).FirstOrDefault();
59

  
60
                if (instance == null)
61
                {
62
                    return;
63
                }
64
                MARKUP_INFO_VERSION version = instance.MARKUP_INFO_VERSION.FirstOrDefault();
65

  
66

  
67
                version.MARKUP_DATA.ToList().ForEach(data =>
68
                {
69
                    Entity.MARKUP_DATA.DeleteObject(data);
70
                    Entity.SaveChanges();
71
                });
72

  
73
                Entity.MARKUP_INFO_VERSION.DeleteObject(version);
74
                Entity.SaveChanges();
75

  
76
                Entity.MARKUP_INFO.DeleteObject(instance);
77
                Entity.SaveChanges();
78

  
79
            }
80
        }
51
                
81 52
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
82 53
        {
83 54
            double screenWidth = System.Windows.SystemParameters.PrimaryScreenWidth;
......
89 60
            this.Top = (screenHeight / 2) - (windowHeight / 2);
90 61

  
91 62

  
92
            //test();
93 63
            ViewerDataModel.Instance.SystemMain = this;
94 64

  
95 65
            if (!App.ParameterMode)

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)