服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
19 小时以前 a960900364d19bbf0ad7923a57989609e7fce798
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Autofac;
using Rhea.Common;
using Tiger.IBusiness;
 
namespace Tiger.Api.iBiz
{
    public class Biz
    {
        private static readonly IBiz _Biz = AutoFacContainer.Instance.Resolve<IBiz>();
 
        /// <summary>
        /// 主数据库客户端
        /// </summary>
        public static DbClient Db => _Biz.DB();
 
        /// <summary>
        /// 主数据库基础方法
        /// </summary>
        public static IDbBase Base => _Biz.DbBase();
 
        /// <summary>
        /// 指定名称数据库客户端
        /// </summary>
        public static DbClient DB(string name = "") => _Biz.DB(name);
 
        /// <summary>
        /// 指定名称数据库基础方法
        /// </summary>
        public static IDbBase DbBase(string name = "") => _Biz.DbBase(name);
    }
}