개정판 f28a350a
issue #663: setCurrentPidSource method 제거로 인한 오류 수정
Change-Id: Ia7c67a83ae51228dee1d13344dc300a3f10302bd
DTI_PID/SPPIDConverter/DB/Project_DB.cs | ||
---|---|---|
618 | 618 |
|
619 | 619 |
return dt; |
620 | 620 |
} |
621 |
|
|
622 |
public static DataTable SelectSymbolType() |
|
623 |
{ |
|
624 |
DataTable dt = new DataTable(); |
|
625 |
Project_Info projectInfo = Project_Info.GetInstance(); |
|
626 |
using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", projectInfo.DBFilePath))) |
|
627 |
{ |
|
628 |
try |
|
629 |
{ |
|
630 |
connection.Open(); |
|
631 |
using (SQLiteCommand cmd = connection.CreateCommand()) |
|
632 |
{ |
|
633 |
cmd.CommandText = string.Format("SELECT * FROM {0}", SymbolType_TABLE); |
|
634 |
using (SQLiteDataReader dr = cmd.ExecuteReader()) |
|
635 |
dt.Load(dr); |
|
636 |
} |
|
637 |
connection.Close(); |
|
638 |
} |
|
639 |
catch (Exception ex) |
|
640 |
{ |
|
641 |
|
|
642 |
} |
|
643 |
finally |
|
644 |
{ |
|
645 |
connection.Dispose(); |
|
646 |
} |
|
647 |
} |
|
648 |
|
|
649 |
return dt; |
|
650 |
} |
|
651 |
|
|
621 | 652 |
public static DataTable SelectDrawingInfo() |
622 | 653 |
{ |
623 | 654 |
DataTable dt = new DataTable(); |
내보내기 Unified diff