44 lines
1021 B
C#
44 lines
1021 B
C#
namespace MiaoYu.Core.CodeGenerator.Services;
|
|
|
|
/// <summary>
|
|
/// 数据库表服务接口
|
|
/// </summary>
|
|
public interface IDatabaseTableService : IScopedDependency
|
|
{
|
|
/// <summary>
|
|
/// 获取所有的表 包含表下面的列(支持多数据源)
|
|
/// </summary>
|
|
/// <returns>所有表信息列表</returns>
|
|
List<DbTableInfo> GetAllTableInfos();
|
|
|
|
/// <summary>
|
|
/// 获取所有的表 包含表下面的列
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
List<GenDbTableDto> GetAllTables();
|
|
|
|
/// <summary>
|
|
/// 获取表信息根据缓存
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
List<GenDbTableDto> GetAllTablesByCache();
|
|
|
|
/// <summary>
|
|
/// 清空所有表缓存信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
bool ClearAllTablesByCache();
|
|
|
|
/// <summary>
|
|
/// 刷新缓存
|
|
/// </summary>
|
|
void RefreshCache();
|
|
|
|
/// <summary>
|
|
/// 获取数据库名称
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
string? GetDatabaseName();
|
|
}
|
|
|