控制台迁移去掉泛型
This commit is contained in:
parent
8e4a853619
commit
d8f646a0d3
|
@ -41,9 +41,9 @@ namespace Sample.Migrations
|
|||
op.UseShardingMigrationConfigure(op =>
|
||||
{
|
||||
op.ReplaceService<IMigrationsSqlGenerator,
|
||||
ShardingSqlServerMigrationsSqlGenerator<DefaultShardingTableDbContext>>();
|
||||
ShardingSqlServerMigrationsSqlGenerator>();
|
||||
});
|
||||
}).ReplaceService<ITableEnsureManager,SqlServerTableEnsureManager>().EnsureConfig();
|
||||
}).EnsureConfig();
|
||||
_serviceProvider = services.BuildServiceProvider();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Sample.Migrations.EFCores
|
|||
/// <summary>
|
||||
/// https://github.com/Coldairarrow/EFCore.Sharding/blob/master/src/EFCore.Sharding.SqlServer/ShardingSqlServerMigrationsSqlGenerator.cs
|
||||
/// </summary>
|
||||
public class ShardingSqlServerMigrationsSqlGenerator<TShardingDbContext> : SqlServerMigrationsSqlGenerator where TShardingDbContext:DbContext,IShardingDbContext
|
||||
public class ShardingSqlServerMigrationsSqlGenerator : SqlServerMigrationsSqlGenerator
|
||||
{
|
||||
private readonly IShardingRuntimeContext _shardingRuntimeContext;
|
||||
|
||||
|
|
Loading…
Reference in New Issue