Initial_commit_SecMPS_v2

This commit is contained in:
2026-05-15 23:22:48 +08:00
commit 23ea4fe05f
13830 changed files with 298675 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System.Threading;
namespace VolPro.Core.Generic
{
public static class GenericTableAsyncLocal
{
private static readonly AsyncLocal<string> _currentTableName = new AsyncLocal<string>();
/// <summary>
/// 当前请求对应的表名
/// </summary>
public static string CurrentTableName
{
get => _currentTableName.Value;
set {
if (_currentTableName.Value==null)
{
_currentTableName.Value = value;
}
}
}
public static void Clear()
{
_currentTableName.Value = null;
}
}
}