"auto-generated" moved to the top of the generated file so StyleCop can see it

This commit is contained in:
David Broadhead
2022-10-06 17:10:32 +01:00
parent 958875e0f0
commit 9c5e8ad135

View File

@@ -93,6 +93,8 @@ namespace EntityFrameworkCore.Projectables.Generator
resultBuilder.Clear();
resultBuilder.AppendLine("// <auto-generated/>");
if (projectable.UsingDirectives is not null)
{
foreach (var usingDirective in projectable.UsingDirectives.Distinct())
@@ -130,7 +132,6 @@ namespace EntityFrameworkCore.Projectables.Generator
);
resultBuilder.Append($@"
// <auto-generated/>
namespace EntityFrameworkCore.Projectables.Generated
#nullable disable
{{