Repository: dotnet/efcore
File: src/EFCore.Design/Migrations/Design/CSharpMigrationsGenerator.cs (C#)

Code before:
            builder
                .AppendLine()
                .Append("namespace ").AppendLine(Code.Namespace(modelSnapshotNamespace))
                .AppendLine("{")
                .IncrementIndent();
        }

        builder
            .Append("[DbContext(typeof(").Append(Code.Reference(contextType)).AppendLine("))]")
            .Append("partial class ").Append(Code.Identifier(modelSnapshotName)).AppendLine(" : ModelSnapshot")
            .AppendLine("{");
        using (builder.Indent())
        {
            builder
                .AppendLine("protected override void BuildModel(ModelBuilder modelBuilder)")
                .AppendLine("{")
                .DecrementIndent()
                .DecrementIndent();

            if (!string.IsNullOrEmpty(latestMigrationId))
            {
                builder
                    .Append("// LatestMigrationId = ").AppendLine(Code.Literal(latestMigrationId))
                    .AppendLine("// If you encounter a merge conflict in the line above, it means you need to")
                    .AppendLine("// discard one of the migration branches and recreate its migrations on top of")
                    .AppendLine("// the other branch. See https://aka.ms/efcore-docs-merge-conflicts for more info.")
                    .AppendLine();
            }

            builder
                .AppendLine("#pragma warning disable 612, 618")
                .IncrementIndent()
                .IncrementIndent();
            using (builder.Indent())
            {
                CSharpDependencies.CSharpSnapshotGenerator.Generate("modelBuilder", model, builder);
            }

            builder
                .DecrementIndent()
                .DecrementIndent()
                .AppendLine("#pragma warning restore 612, 618")
                .IncrementIndent()
                .IncrementIndent()
                .AppendLine("}");
        }

        builder.AppendLine("}");

        if (!string.IsNullOrEmpty(modelSnapshotNamespace))
        {

Review comment (suggestion):
@copilot Place the comment before the property. Replace link with https://aka.ms/efcore-docs-migrations-conflicts

Code after:
            builder
                .AppendLine()
                .Append("namespace ").AppendLine(Code.Namespace(modelSnapshotNamespace))
                .AppendLine("{")
                .IncrementIndent();
        }

        builder
            .Append("[DbContext(typeof(").Append(Code.Reference(contextType)).AppendLine("))]")
            .Append("partial class ").Append(Code.Identifier(modelSnapshotName)).AppendLine(" : ModelSnapshot")
            .AppendLine("{");
        using (builder.Indent())
        {
            if (!string.IsNullOrEmpty(latestMigrationId))
            {
                builder
                    .AppendLine("// If you encounter a merge conflict in the line below, it means you need to")
                    .AppendLine("// discard one of the migration branches and recreate its migrations on top of")
                    .AppendLine("// the other branch. See https://aka.ms/efcore-docs-migrations-conflicts for more info.")
                    .Append("public override string LatestMigrationId => ").Append(Code.Literal(latestMigrationId)).AppendLine(";")
                    .AppendLine();
            }

            builder
                .AppendLine("protected override void BuildModel(ModelBuilder modelBuilder)")
                .AppendLine("{")
                .DecrementIndent()
                .DecrementIndent()
                .AppendLine("#pragma warning disable 612, 618")
                .IncrementIndent()
                .IncrementIndent();
            using (builder.Indent())
            {
                CSharpDependencies.CSharpSnapshotGenerator.Generate("modelBuilder", model, builder);
            }

            builder
                .DecrementIndent()
                .DecrementIndent()
                .AppendLine("#pragma warning restore 612, 618")
                .IncrementIndent()
                .IncrementIndent()
                .AppendLine("}");
        }

        builder.AppendLine("}");

        if (!string.IsNullOrEmpty(modelSnapshotNamespace))
        {
            builder
                .DecrementIndent()