mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
-
This commit is contained in:
@@ -26,11 +26,13 @@ namespace SqlSugar
|
||||
/// <summary>
|
||||
/// Configure External Services replace default services,For example, Redis storage
|
||||
/// </summary>
|
||||
public ConfigureExternalServices ConfigureExternalServices { get; set; }
|
||||
public ConfigureExternalServices ConfigureExternalServices = _DefaultServices;
|
||||
private static ConfigureExternalServices _DefaultServices = new ConfigureExternalServices();
|
||||
}
|
||||
|
||||
|
||||
public class ConfigureExternalServices
|
||||
{
|
||||
public ISerializeService SerializeService { get; set; }
|
||||
public ISerializeService SerializeService =DefaultServices.Serialize;
|
||||
public ICacheService ReflectionInoCache = DefaultServices.ReflectionInoCache;
|
||||
}
|
||||
}
|
||||
|
||||
13
Src/Asp.Net/SqlSugar/IntegrationServices/DefaultServices.cs
Normal file
13
Src/Asp.Net/SqlSugar/IntegrationServices/DefaultServices.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace SqlSugar
|
||||
{
|
||||
public class DefaultServices
|
||||
{
|
||||
public static ICacheService ReflectionInoCache = new ReflectionInoCache();
|
||||
public static ISerializeService Serialize = new SerializeService();
|
||||
}
|
||||
}
|
||||
@@ -94,6 +94,7 @@
|
||||
<Compile Include="ExpressionsToSql\Subquery\SubTools.cs" />
|
||||
<Compile Include="Infrastructure\DependencyManagement.cs" />
|
||||
<Compile Include="IntegrationInterface\ISerializeService.cs" />
|
||||
<Compile Include="IntegrationServices\DefaultServices.cs" />
|
||||
<Compile Include="Realization\Oracle\Deleteable\OracleDeleteable.cs" />
|
||||
<Compile Include="Realization\Oracle\Insertable\OracleInsertable.cs" />
|
||||
<Compile Include="Realization\Oracle\Updateable\OracleUpdateable.cs" />
|
||||
|
||||
Reference in New Issue
Block a user