diff --git a/SQLHelperLibrary/SQLHelper.cs b/SQLHelperLibrary/SQLHelper.cs index 527620da..86044230 100644 --- a/SQLHelperLibrary/SQLHelper.cs +++ b/SQLHelperLibrary/SQLHelper.cs @@ -39,26 +39,7 @@ public SQLHelper(string dataSource) /// /// 专用于游戏库的初始化 /// - public SQLHelper() - { - var dataSource = $"{Environment.CurrentDirectory}\\MisakaGameLibrary.sqlite"; - var connectionStringBuilder = new SQLiteConnectionStringBuilder - { - Version = 3, - Pooling = true, - FailIfMissing = false, - DataSource = dataSource - }; - try - { - var mConnectionString = connectionStringBuilder.ConnectionString; - _mDbConnection = new SQLiteConnection(mConnectionString); - } - catch (Exception ex) - { - throw ex; - } - } + public SQLHelper() : this($"{Environment.CurrentDirectory}\\MisakaGameLibrary.sqlite") { } ///