2021-02-02 17:37:41 +08:00
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using ShardingCore;
|
2022-06-17 10:57:25 +08:00
|
|
|
using ShardingCore.Bootstrappers;
|
2021-02-02 17:37:41 +08:00
|
|
|
|
|
|
|
namespace Samples.AutoByDate.SqlServer
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* @Author: xjm
|
|
|
|
* @Description:
|
|
|
|
* @Date: Tuesday, 26 January 2021 12:29:04
|
|
|
|
* @Email: 326308290@qq.com
|
|
|
|
*/
|
|
|
|
public static class DIExtension
|
|
|
|
{
|
|
|
|
public static IApplicationBuilder UseShardingCore(this IApplicationBuilder app)
|
|
|
|
{
|
2022-07-03 16:52:03 +08:00
|
|
|
app.ApplicationServices.UseAutoTryCompensateTable();
|
2021-02-02 17:37:41 +08:00
|
|
|
return app;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|