Table of Contents

Class SchemaComparison

Namespace
GroupeIsa.Neos.Migration.Comparison
Assembly
GroupeIsa.Neos.Migration.Abstractions.dll

Represents a class that allows comparing schema between two databases.

public static class SchemaComparison
Inheritance
SchemaComparison
Inherited Members

Methods

Compare(INeosSchema, INeosSchema)

Performs schema comparison, populating and returning comparison results.

public static SchemaComparisonResult Compare(INeosSchema source, INeosSchema target)

Parameters

source INeosSchema

Existing schema on the database.

target INeosSchema

Expected schema.

Returns

SchemaComparisonResult

A SchemaComparisonResult class that provides information about the differences between a source and target database.

Remarks

This overload always compares names case-insensitively. Prefer Compare(INeosSchema, INeosSchema, DatabaseType, bool), which compares names correctly when quoted identifiers are enabled on PostgreSQL or Oracle.

Compare(INeosSchema, INeosSchema, DatabaseType, bool)

Performs schema comparison, populating and returning comparison results, comparing names case-sensitively when quotedIdentifiers is enabled on PostgreSQL or Oracle (SQL Server is always case-insensitive, regardless of quotedIdentifiers).

public static SchemaComparisonResult Compare(INeosSchema source, INeosSchema target, DatabaseType databaseType, bool quotedIdentifiers)

Parameters

source INeosSchema

Existing schema on the database.

target INeosSchema

Expected schema.

databaseType DatabaseType

The target database engine.

quotedIdentifiers bool

Whether the migration settings enable quoted identifiers.

Returns

SchemaComparisonResult

A SchemaComparisonResult class that provides information about the differences between a source and target database.