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.
|
|
|
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获取业务库
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
public ISqlSugarClient GetBizDbById(object configId);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取业务库Scope
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
public SqlSugarScopeProvider GetMasterDbScope();
|
|
|
|
}
|