修改类目
This commit is contained in:
parent
654347d1e1
commit
6e2bf99186
|
@ -24,13 +24,13 @@ namespace ShardingCore.Sharding.StreamMergeEngines.EnumeratorStreamMergeEngines.
|
||||||
* @Ver: 1.0
|
* @Ver: 1.0
|
||||||
* @Email: 326308290@qq.com
|
* @Email: 326308290@qq.com
|
||||||
*/
|
*/
|
||||||
internal class AppenOrderSequenceEnumeratorAsyncStreamMergeEngine<TShardingDbContext, TEntity> : AbstractEnumeratorStreamMergeEngine<TEntity>
|
internal class AppendOrderSequenceEnumeratorAsyncStreamMergeEngine<TShardingDbContext, TEntity> : AbstractEnumeratorStreamMergeEngine<TEntity>
|
||||||
where TShardingDbContext : DbContext, IShardingDbContext
|
where TShardingDbContext : DbContext, IShardingDbContext
|
||||||
{
|
{
|
||||||
private readonly PaginationSequenceConfig _dataSourceSequenceOrderConfig;
|
private readonly PaginationSequenceConfig _dataSourceSequenceOrderConfig;
|
||||||
private readonly PaginationSequenceConfig _tableSequenceOrderConfig;
|
private readonly PaginationSequenceConfig _tableSequenceOrderConfig;
|
||||||
private readonly ICollection<RouteQueryResult<long>> _routeQueryResults;
|
private readonly ICollection<RouteQueryResult<long>> _routeQueryResults;
|
||||||
public AppenOrderSequenceEnumeratorAsyncStreamMergeEngine(StreamMergeContext<TEntity> streamMergeContext, PaginationSequenceConfig dataSourceSequenceOrderConfig, PaginationSequenceConfig tableSequenceOrderConfig, ICollection<RouteQueryResult<long>> routeQueryResults) : base(streamMergeContext)
|
public AppendOrderSequenceEnumeratorAsyncStreamMergeEngine(StreamMergeContext<TEntity> streamMergeContext, PaginationSequenceConfig dataSourceSequenceOrderConfig, PaginationSequenceConfig tableSequenceOrderConfig, ICollection<RouteQueryResult<long>> routeQueryResults) : base(streamMergeContext)
|
||||||
{
|
{
|
||||||
_dataSourceSequenceOrderConfig = dataSourceSequenceOrderConfig;
|
_dataSourceSequenceOrderConfig = dataSourceSequenceOrderConfig;
|
||||||
_tableSequenceOrderConfig = tableSequenceOrderConfig;
|
_tableSequenceOrderConfig = tableSequenceOrderConfig;
|
|
@ -115,7 +115,7 @@ namespace ShardingCore.Sharding.MergeEngines.EnumeratorStreamMergeEngines
|
||||||
}
|
}
|
||||||
if (dataSourceSequenceOrderConfig != null || tableSequenceOrderConfig != null)
|
if (dataSourceSequenceOrderConfig != null || tableSequenceOrderConfig != null)
|
||||||
{
|
{
|
||||||
return new AppenOrderSequenceEnumeratorAsyncStreamMergeEngine<TShardingDbContext, TEntity>(_streamMergeContext, dataSourceSequenceOrderConfig, tableSequenceOrderConfig, _shardingPageManager.Current.RouteQueryResults);
|
return new AppendOrderSequenceEnumeratorAsyncStreamMergeEngine<TShardingDbContext, TEntity>(_streamMergeContext, dataSourceSequenceOrderConfig, tableSequenceOrderConfig, _shardingPageManager.Current.RouteQueryResults);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue