• 2024-08-30sqlsugar 封装 单例模式 多数据库 泛型
    PlayGround\.config\dotnet-tools.json{"version":1,"isRoot":true,"tools":{"csharpier":{"version":"0.29.1","commands":["dotnet-csharpier
  • 2024-08-29sqlsugar 封装 单例模式 多数据库
    #PlayGround\.config\dotnet-tools.json{"version":1,"isRoot":true,"tools":{"csharpier":{"version":"0.29.1","commands":["dotnet-csharpi
  • 2024-08-29sqlsugar 单例模式 封装
    usingSystem.Linq.Expressions;usingMicrosoft.Extensions.Configuration;usingSqlSugar;namespaceSqlSugarFrameworkCore;publicclassDbSettings{publicconststringAppOne="AppOne";publicconststringAppDevOne="AppDevOne";pub
  • 2024-05-16Dynamic-Datasource动态数据源
    1、添加请求对应的数据源标签DynamicDataSourceContextHolder.push(ds);2、添加数据源  3、动态添加数据源privateDynamicRoutingDataSourcedataSource;privateDefaultDataSourceCreatordataSourceCreator;//创建数据源DataSourcePropertydataSourceProperty