개정판 84c48033
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