添加条件编译

croire 3 years ago
parent 4a3f0d43eb
commit 6c8a738e02

@ -7,9 +7,14 @@ namespace DownKyi.Core.Storage.Database
public class CoverDb public class CoverDb
{ {
private const string key = "b5018ecc-09d1-4da2-aa49-4625e41e623e"; private const string key = "b5018ecc-09d1-4da2-aa49-4625e41e623e";
private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetCoverIndex(), key);
private readonly string tableName = "cover"; private readonly string tableName = "cover";
#if DEBUG
private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetCoverIndex().Replace(".db", "_debug.db"));
#else
private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetCoverIndex(), key);
#endif
public CoverDb() public CoverDb()
{ {
CreateTable(); CreateTable();

@ -7,9 +7,14 @@ namespace DownKyi.Core.Storage.Database
public class HeaderDb public class HeaderDb
{ {
private const string key = "7c1f1f40-7cdf-4d11-ad28-f0137a3c5308"; private const string key = "7c1f1f40-7cdf-4d11-ad28-f0137a3c5308";
private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetHeaderIndex(), key);
private readonly string tableName = "header"; private readonly string tableName = "header";
#if DEBUG
private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetHeaderIndex().Replace(".db", "_debug.db"));
#else
private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetHeaderIndex(), key);
#endif
public HeaderDb() public HeaderDb()
{ {
CreateTable(); CreateTable();

Loading…
Cancel
Save