- Code: Select all
public void CreateOverwriteObject(string table, string key, DatabaseObject dbo, Action successAction)
{
this.PlayerIO.BigDB.DeleteKeys(table, new string[] { key }, () =>
{
this.PlayerIO.BigDB.CreateObject(table, key, dbo, resultDbo =>
{
successAction();
}, OnDatabaseError);
}, (error) =>
{
this.PlayerIO.BigDB.CreateObject(table, key, dbo, resultDbo => { }, OnDatabaseError);
});
}
Apparently, its always on the first line DeleteKeys(), but since everything is asynchronous I'm confused as to what is going on...
Cheers, Paul.