33 lines
733 B
C#
33 lines
733 B
C#
using CsharpHttpHelper;
|
|
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace 同步老妖联盟上下级关系.Utils
|
|
{
|
|
public class DBClient
|
|
{
|
|
public static string ConnPath;
|
|
public static SqlSugarClient DbBase
|
|
{
|
|
get
|
|
{
|
|
return new SqlSugarClient(new ConnectionConfig()
|
|
{
|
|
ConnectionString = $"Data Source={ConnPath};Version=3;",
|
|
DbType = DbType.Sqlite,
|
|
IsAutoCloseConnection = true,
|
|
InitKeyType = InitKeyType.Attribute
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|