Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

357 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommandParserTests

The CommandParserTests class contains tests for the CommandParser class. These tests cover various scenarios, including:

  • Parsing valid commands with all flags
  • Parsing commands with missing option values
  • Parsing commands with unknown flags
  • Parsing help invocations

Example usage:

public CommandParserTests
public void Parse_ValidCommandWithAllFlags_ShouldPopulateOptionsAndArguments
public void Parse_MissingOptionValue_ShouldTreatAsFlag
public void Parse_UnknownFlag_ShouldBeAddedAsFlag
public void Parse_HelpInvocation_ShouldBeRecognizedAsFlag

MarkdownFormatter

The MarkdownFormatter class is used to generate detailed, human-readable migration diff reports in Markdown format. It processes a MigrationDiff object to produce comprehensive tables summarizing migrations, conflicts, schema changes, and recommendations for branch management.

Example usage:

using EfMigrationDiff.Formatters;
using EfMigrationDiff.Models;

// Assuming 'diff' is an existing MigrationDiff object
var formatter = new MarkdownFormatter(includeDestructiveWarnings: true);

// Generate the report as a string
string report = formatter.GenerateMarkdownReport(diff);

// Alternatively, write directly to a file
formatter.WriteToFile("migration-diff-report.md", diff);

About

Compare Entity Framework migrations between branches - detect conflicts, preview schema changes - One of the tools I finally got around to publishing.

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages