You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB
C#

11 months ago
using SqlSugar;
namespace DS.Module.SqlSugar;
public interface ISaasDbService
{
/// <summary>
/// 获取业务库
/// </summary>
/// <returns></returns>
public ISqlSugarClient GetBizDb();
/// <summary>
/// 获取业务库
/// </summary>
/// <returns></returns>
public ISqlSugarClient GetMasterDb();
/// <summary>
/// 主库根据Id获取业务库Scope
/// </summary>
/// <param name="configId"></param>
/// <returns></returns>
public SqlSugarScopeProvider GetBizDbScopeById(object configId);
11 months ago
/// <summary>
/// 获取业务库Scope
/// </summary>
/// <returns></returns>
public SqlSugarScopeProvider GetMasterDbScope();
/// <summary>
/// 获取日志库信息
/// </summary>
/// <returns></returns>
public SqlSugarScopeProvider GetLogDb();
/// <summary>
/// 获取任务库
/// </summary>
/// <param name="conf"></param>
/// <returns></returns>
public SqlSugarScopeProvider GetBizJobDbScopeById(JobDbInitConfig conf);
11 months ago
}