From 1dc1dc718ddf3ab3adb2ff74906a7c8e837b81f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=AD=E4=B9=9D=E9=BC=8E?= <109224573@qq.com>
Date: Tue, 14 Jul 2020 22:23:42 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A4=8D=E7=94=A8=E6=9E=84=E9=80=A0=E5=87=BD?=
=?UTF-8?q?=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SQLHelperLibrary/SQLHelper.cs | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
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") { }
///