Table of Contents

Class SchemaComparisonResult

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

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

public class SchemaComparisonResult
Inheritance
SchemaComparisonResult
Inherited Members

Properties

Differences

Gets a collection that contains results of schema comparison of source and target databases.

public IEnumerable<SchemaDifference> Differences { get; init; }

Property Value

IEnumerable<SchemaDifference>

IsEqual

Gets a value indicating whether the source and target database schemas are equal.

public bool IsEqual { get; }

Property Value

bool

SourceSchema

Gets the source database schema.

public INeosSchema SourceSchema { get; init; }

Property Value

INeosSchema

TargetSchema

Gets the target database schema.

public INeosSchema TargetSchema { get; init; }

Property Value

INeosSchema

Methods

HasChanged(ObjectType, string)

Returns a value indicating whether the object with the specified type and name has been changed in the database schema.

public bool HasChanged(ObjectType objectType, string name)

Parameters

objectType ObjectType

Type of the object.

name string

Name of the object.

Returns

bool

true if the object with the specified type was changed; otherwise, false.

Remarks

For the Column the name must be prefixed with the table name.

HasDifferences(ObjectType, string, SchemaUpdateAction)

Returns a value indicating whether the object with the specified type, name and update action exists in the database schema.

public bool HasDifferences(ObjectType objectType, string name, SchemaUpdateAction updateAction)

Parameters

objectType ObjectType

Type of the object.

name string

Name of the object.

updateAction SchemaUpdateAction

Update action.

Returns

bool

true if the object with the specified type and update action was found; otherwise, false.

Remarks

For the Column the name must be prefixed with the table name.

IsAdded(ObjectType, string)

Returns a value indicating whether the object with the specified type and name was added to the database schema.

public bool IsAdded(ObjectType objectType, string name)

Parameters

objectType ObjectType

Type of the object.

name string

Name of the object.

Returns

bool

true if the object with the specified type was added; otherwise, false.

Remarks

For the Column the name must be prefixed with the table name.

IsDeleted(ObjectType, string)

Returns a value indicating whether the object with the specified type and name was deleted from the database schema.

public bool IsDeleted(ObjectType objectType, string name)

Parameters

objectType ObjectType

Type of the object.

name string

Name of the object.

Returns

bool

true if the object with the specified type was deleted; otherwise, false.

Remarks

For the Column the name must be prefixed with the table name.