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.

32 lines
720 B
C#

10 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);
10 months ago
/// <summary>
/// 获取业务库Scope
/// </summary>
/// <returns></returns>
public SqlSugarScopeProvider GetMasterDbScope();
10 months ago
}