Add the ability to change the SQL Write Lock TimeOut (#9750)

Co-authored-by: Shannon <sdeminick@gmail.com>
This commit is contained in:
Sebastiaan Janssen
2021-02-20 13:44:15 +01:00
committed by GitHub
parent b9b75b3794
commit 2c54adacf2
10 changed files with 317 additions and 40 deletions

View File

@@ -19,7 +19,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
/// All Sql Syntax provider implementations should derive from this abstract class.
/// </remarks>
/// <typeparam name="TSyntax"></typeparam>
public abstract class SqlSyntaxProviderBase<TSyntax> : ISqlSyntaxProvider
public abstract class SqlSyntaxProviderBase<TSyntax> : ISqlSyntaxProvider2
where TSyntax : ISqlSyntaxProvider
{
protected SqlSyntaxProviderBase()
@@ -235,6 +235,9 @@ namespace Umbraco.Core.Persistence.SqlSyntax
public abstract void ReadLock(IDatabase db, params int[] lockIds);
public abstract void WriteLock(IDatabase db, params int[] lockIds);
public abstract void ReadLock(IDatabase db, TimeSpan timeout, int lockId);
public abstract void WriteLock(IDatabase db, TimeSpan timeout, int lockId);
public virtual bool DoesTableExist(IDatabase db, string tableName)
{