Added checks for non-user foreign keys in stores. Load/Saving stores' order is now based on table dependencies. Added ability to use chat message when using redemption.
This commit is contained in:
@ -87,7 +87,7 @@ namespace HermesSocketServer.Store.Internal
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool Remove(K? key)
|
||||
public bool Remove(K? key, bool fromCascade = false)
|
||||
{
|
||||
if (key == null)
|
||||
return false;
|
||||
@ -102,7 +102,7 @@ namespace HermesSocketServer.Store.Internal
|
||||
if (!_added.Remove(key))
|
||||
{
|
||||
_modified.Remove(key);
|
||||
if (!_deleted.Contains(key))
|
||||
if (!fromCascade && !_deleted.Contains(key))
|
||||
{
|
||||
_deleted.Add(key);
|
||||
}
|
||||
|
Reference in New Issue
Block a user