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

22 lines
551 B

using Furion;
using SqlSugar;
using System.Collections.Generic;
namespace Cis.Core;
/// <summary>
/// 数据库上下文对象
/// </summary>
public static class DbContext
{
/// <summary>
/// SqlSugar 数据库实例
/// </summary>
public static readonly SqlSugarScope Instance = new(
// 读取 appsettings.json 中的 ConnectionConfigs 配置节点
App.GetConfig<List<ConnectionConfig>>("ConnectionConfigs")
, db =>
{
// 这里配置全局事件,比如拦截执行 SQL
});
}