[성현모] JsonConvertTool 추가, 서머리 수량 버그수정
This commit is contained in:
@ -136,14 +136,14 @@ namespace DataBaseConnection.Control
|
||||
if(list?.Count > 0)
|
||||
{
|
||||
//short term
|
||||
var shortTermCatalogName = list.Find(x => x.ToLower().Contains("short") && x.ToLower().Contains("json"));
|
||||
var shortTermCatalogName = list.Find(x => x.ToLower().Contains("short"));
|
||||
if(string.IsNullOrEmpty(shortTermCatalogName) ==false)
|
||||
{
|
||||
ShortTermCatalogName = shortTermCatalogName;
|
||||
}
|
||||
|
||||
//long term
|
||||
var longTermCatalogName = list.FindAll(x => x.ToLower().Contains("long") && x.ToLower().Contains("json"));
|
||||
var longTermCatalogName = list.FindAll(x => x.ToLower().Contains("long"));
|
||||
if(longTermCatalogName?.Count() > 0)
|
||||
{
|
||||
LongTermCatalogName?.Clear();
|
||||
@ -165,8 +165,6 @@ namespace DataBaseConnection.Control
|
||||
{
|
||||
try
|
||||
{
|
||||
SqlConnection connecction;
|
||||
|
||||
connShortTerm1 = new SqlConnection($"Data Source=localhost; Initial Catalog={ShortTermCatalogName}; Integrated Security = SSPI; MultipleActiveResultSets=True;"); // MultipleActiveResultSets=True;");
|
||||
connShortTerm1.Open();
|
||||
|
||||
@ -174,7 +172,7 @@ namespace DataBaseConnection.Control
|
||||
{
|
||||
connLongTerm1.Add(catalog, new SqlConnection($"Data Source=localhost; Initial Catalog={catalog}; Integrated Security = SSPI; MultipleActiveResultSets=True;")); // MultipleActiveResultSets=True;");
|
||||
|
||||
if (connLongTerm1.TryGetValue(catalog, out connecction) == true)
|
||||
if (connLongTerm1.TryGetValue(catalog, out var connecction) == true)
|
||||
{
|
||||
connecction.Open();
|
||||
}
|
||||
@ -193,8 +191,6 @@ namespace DataBaseConnection.Control
|
||||
{
|
||||
try
|
||||
{
|
||||
SqlConnection connecction;
|
||||
|
||||
connShortTerm2 = new SqlConnection($"Data Source=localhost; Initial Catalog={ShortTermCatalogName}; Integrated Security = SSPI; MultipleActiveResultSets=True;"); // MultipleActiveResultSets=True;");
|
||||
connShortTerm2.Open();
|
||||
|
||||
@ -202,7 +198,7 @@ namespace DataBaseConnection.Control
|
||||
{
|
||||
connLongTerm2.Add(catalog, new SqlConnection($"Data Source=localhost; Initial Catalog={catalog}; Integrated Security = SSPI; MultipleActiveResultSets=True;")); // MultipleActiveResultSets=True;");
|
||||
|
||||
if (connLongTerm2.TryGetValue(catalog, out connecction) == true)
|
||||
if (connLongTerm2.TryGetValue(catalog, out var connecction) == true)
|
||||
{
|
||||
connecction.Open();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user