DocSpace-client/common/ASC.Core.Common/EF/MigrationHistory.cs

15 lines
357 B
C#
Raw Normal View History

namespace ASC.Core.Common.EF
2021-10-12 09:04:24 +00:00
{
[Singletone]
public class MigrationHistory
{
2021-10-22 10:08:09 +00:00
private ConcurrentDictionary<Type, bool> _historyStore
= new ConcurrentDictionary<Type, bool>();
2021-10-12 09:04:24 +00:00
2021-10-22 10:08:09 +00:00
public bool TryAddMigratedContext(Type contextType)
2021-10-12 09:04:24 +00:00
{
2021-10-22 10:08:09 +00:00
return _historyStore.TryAdd(contextType, true);
2021-10-12 09:04:24 +00:00
}
}
}