Skip to content

Commit 334d9bb

Browse files
committed
Disable restore consent
1 parent 1a37663 commit 334d9bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.nuget/NuGet.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
1111

1212
<!-- Determines if package restore consent is required to restore packages -->
13-
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
13+
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">false</RequireRestoreConsent>
1414

1515
<!-- Download NuGet.exe if it does not already exist -->
1616
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>

Spruce/DbConnectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public static int BulkInsert<T>(this IDbConnection db, IEnumerable<T> items, Sql
451451
var columns = db.GetColumns<T>();
452452
foreach (var item in items)
453453
{
454-
if (count == 0)
454+
if (dt == null)
455455
{
456456
dt = new DataTable(bulkInsert.DestinationTableName);
457457
foreach (var column in columns)

0 commit comments

Comments
 (0)