Refactor ISqlContext and SqlTemplates

This commit is contained in:
Stephan
2017-09-22 18:28:21 +02:00
parent c43bf6c741
commit ee1941b9bf
118 changed files with 619 additions and 619 deletions

View File

@@ -233,7 +233,7 @@ namespace Umbraco.Core.Persistence
var tTransaction = GetTypedTransaction<SqlTransaction>(command.Transaction);
var tableName = pocoData.TableInfo.TableName;
var syntax = database.SqlSyntax as SqlServerSyntaxProvider;
var syntax = database.SqlContext.SqlSyntax as SqlServerSyntaxProvider;
if (syntax == null) throw new NotSupportedException("SqlSyntax must be SqlServerSyntaxProvider.");
using (var copy = new SqlBulkCopy(tConnection, SqlBulkCopyOptions.Default, tTransaction) { BulkCopyTimeout = 10000, DestinationTableName = tableName })