프로젝트

일반

사용자정보

개정판 84c48033

ID84c48033c3deb30fe13e5a6d783fad6b405cb6b1
상위 35afe17c
하위 81f7c012, da4727fe

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

issue #000: daelim merged(settings =>ini) 내/외부 구분 하여 api url 을 리턴하도록 Commonlib 추가. daelim ini 추가

Change-Id: I2904309621897cda96f9537982fbd6e53874be29

차이점 보기:

KCOMDataModel/Common/ConnectStringBuilder.cs
23 23
        }
24 24
        public static EntityConnectionStringBuilder ProjectCIConnectString(string ProjectNo)
25 25
        {
26
            return CIConnectionStringBuilder(Properties.Settings.Default.ProjectConnectionString, ProjectNo, CIMeta);
26
            return CIConnectionStringBuilder(CommonLib.Common.GetConnectionString(), ProjectNo, CIMeta);
27 27
        }
28 28

  
29 29
        private static EntityConnectionStringBuilder CIConnectionStringBuilder(string adoConnectionString, string ProjectNo, string Metadata)
30 30
        {
31 31
            try
32 32
            {
33
                SqlConnectionStringBuilder bl = new SqlConnectionStringBuilder(string.Format(Properties.Settings.Default.ProjectConnectionString, "markus"));
33
                SqlConnectionStringBuilder bl = new SqlConnectionStringBuilder(string.Format(CommonLib.Common.GetConnectionString(), "markus"));
34 34

  
35 35
                using (DataModel.KCOMEntities entity
36 36
                    = new DataModel.KCOMEntities(EntityConnectionStringBuilder(bl, DeepViewMeta).ToString()))
......
66 66
            entityBuilder.Provider = providerName;
67 67
            entityBuilder.ProviderConnectionString = providerString;
68 68
            entityBuilder.Metadata = EntityMetaData;
69
            Console.WriteLine(entityBuilder.ToString());
69
            //Console.WriteLine(entityBuilder.ToString());
70 70

  
71
            using (EntityConnection conn =
72
                new EntityConnection(entityBuilder.ToString()))
73
            {
74
                conn.Open();
75
                Console.WriteLine("Just testing the connection.");
76
                conn.Close();
77
            }
71
            //using (EntityConnection conn =
72
            //    new EntityConnection(entityBuilder.ToString()))
73
            //{
74
            //    conn.Open();
75
            //    Console.WriteLine("Just testing the connection.");
76
            //    conn.Close();
77
            //}
78 78

  
79 79
            return entityBuilder;
80 80
        }

내보내기 Unified diff

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