Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejmnet committed May 11, 2023
1 parent 4b5b987 commit b058b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShardingCore/Extensions/ShardingReadWriteExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static void SetReadWriteSeparation(this IShardingDbContext shardingDbCon
}
}

shardingDbContextExecutor.ReadWriteSeparationBehavior = ReadWriteDefaultEnableBehavior.DefaultEnable;
shardingDbContextExecutor.ReadWriteSeparationBehavior = readOnly?ReadWriteDefaultEnableBehavior.DefaultEnable:ReadWriteDefaultEnableBehavior.DefaultDisable;
}

public static void SetReadWriteSeparation(this ShardingReadWriteContext shardingReadWriteContext, int priority,
Expand Down

0 comments on commit b058b66

Please sign in to comment.