Blame view

Yi.Abp.Net8/framework/Yi.Framework.SqlSugarCore/Uow/SqlSugarDatabaseApi.cs 765 Bytes
515fceeb   “wangming”   框架初始化
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
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using Volo.Abp.Uow;
  using Yi.Framework.SqlSugarCore.Abstractions;
  
  namespace Yi.Framework.SqlSugarCore.Uow
  {
      /// <summary>
      /// SqlSugar数据库API实现
      /// </summary>
      public class SqlSugarDatabaseApi : IDatabaseApi
      {
          /// <summary>
          /// 数据库上下文
          /// </summary>
          public ISqlSugarDbContext DbContext { get; }
  
          /// <summary>
          /// 初始化SqlSugar数据库API
          /// </summary>
          /// <param name="dbContext">数据库上下文</param>
          public SqlSugarDatabaseApi(ISqlSugarDbContext dbContext)
          {
              DbContext = dbContext;
          }
      }
  }