2023-12-11 09:55:12 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
using Volo.Abp.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.SqlSugarCore.Abstractions
|
|
|
|
|
|
{
|
2025-02-23 03:06:06 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// SqlSugar数据库上下文接口
|
|
|
|
|
|
/// </summary>
|
2023-12-11 09:55:12 +08:00
|
|
|
|
public interface ISqlSugarDbContext
|
|
|
|
|
|
{
|
2024-11-19 11:19:13 +08:00
|
|
|
|
/// <summary>
|
2025-02-23 03:06:06 +08:00
|
|
|
|
/// 获取SqlSugar客户端实例
|
2024-11-19 11:19:13 +08:00
|
|
|
|
/// </summary>
|
2023-12-11 09:55:12 +08:00
|
|
|
|
ISqlSugarClient SqlSugarClient { get; }
|
2024-12-10 22:04:46 +08:00
|
|
|
|
|
2023-12-22 18:57:04 +08:00
|
|
|
|
/// <summary>
|
2025-02-23 03:06:06 +08:00
|
|
|
|
/// 执行数据库备份
|
2023-12-22 18:57:04 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
void BackupDataBase();
|
2023-12-11 09:55:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|