Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ private void TruncateAllTables()
BenchmarkProvider.PostgreSQL => "\"AuditHeader\"",
_ => "AuditHeader",
};
#pragma warning disable EF1002 // Static SQL with no user input.
#pragma warning disable EF1002, S2077 // Static SQL, table names are hardcoded provider literals with no user input.
ctx.Database.ExecuteSqlRaw($"DELETE FROM {detailTable}");
ctx.Database.ExecuteSqlRaw($"DELETE FROM {headerTable}");
ctx.Database.ExecuteSqlRaw($"DELETE FROM {customerTable}");
#pragma warning restore EF1002
#pragma warning restore EF1002, S2077
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ public async Task DropTablesAsync(DbContext context, CancellationToken cancellat
var detailFqn = QuoteIdentifier(context.Database.ProviderName, schema, detailTable);
var headerFqn = QuoteIdentifier(context.Database.ProviderName, schema, headerTable);

#pragma warning disable EF1002 // Identifiers validated + provider-quoted above; values come from AuditOptions, not user input.
#pragma warning disable EF1002, S2077 // Identifiers validated + provider-quoted above; values come from AuditOptions, not user input. DDL identifiers cannot be parameterized.
await context.Database
.ExecuteSqlRawAsync($"DROP TABLE IF EXISTS {detailFqn}", cancellationToken)
.ConfigureAwait(false);

await context.Database
.ExecuteSqlRawAsync($"DROP TABLE IF EXISTS {headerFqn}", cancellationToken)
.ConfigureAwait(false);
#pragma warning restore EF1002
#pragma warning restore EF1002, S2077
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
6.0.x versions transitively pull a vulnerable Microsoft.Extensions.Caching.Memory.
-->
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.36" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.9" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.11" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.9" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
Expand Down
Loading