Skip to content

Initial seed data UI - #101

Merged
ErikEJ merged 1 commit into
mainfrom
merge-ui
Nov 8, 2025
Merged

ErikEJ merged 1 commit into
mainfrom
merge-ui

Conversation

@ErikEJ

@ErikEJ ErikEJ commented Nov 8, 2025

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings November 8, 2025 13:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements initial seed data UI functionality, allowing users to generate SQL MERGE scripts for seeding database tables. The implementation adds a new command handler that guides users through selecting a database connection and table, then generates a merge script using an external tool.

Key Changes:

  • New SeedHandler class that orchestrates the seed data generation workflow
  • Integration with existing UI dialogs for database and table selection
  • Modified MergeGenerator to return the output file path for opening in the editor

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Vsix/Handlers/SeedHandler.cs New handler implementing seed data generation workflow with database connection selection, table picking, and script generation
src/Vsix/Commands/SeedCommand.cs Updated to invoke the new SeedHandler instead of showing placeholder message
src/Vsix/Handlers/ProcessLauncher.cs Added CreateMergeScriptAsync method to launch external merge script generation
src/Vsix/Dialogs/PickServerDatabaseDialog.xaml.cs Added logic to hide unnecessary UI rows when in "Seed" mode
src/DacFXToolLib/MergeGenerator.cs Modified to return output file path instead of void
src/DacFXTool/Program.cs Updated to output the result file path from merge generation
src/DacFXToolLib/TableListBuilder.cs Made procedure and function model factories nullable
src/DacFXToolLib/ServiceProviderBuilder.cs Added support for SQLServer database type alongside SQLServerDacpac
src/Vsix/Vsix.csproj Added SeedHandler.cs to compilation
src/Vsix/Handlers/ImportHandler.cs Reordered using statements for consistency
test/SmokeTest/SdkStyle/Post-Deployment/Artist_merge.sql Added test seed data for Artist table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Vsix/Handlers/ProcessLauncher.cs
@ErikEJ
ErikEJ merged commit a2720d5 into main Nov 8, 2025
1 check passed
@ErikEJ
ErikEJ deleted the merge-ui branch April 15, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants