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
IsEqual
Gets a value indicating whether the source and target database schemas are equal.
public bool IsEqual { get; }
Property Value
SourceSchema
Gets the source database schema.
public INeosSchema SourceSchema { get; init; }
Property Value
TargetSchema
Gets the target database schema.
public INeosSchema TargetSchema { get; init; }
Property Value
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
objectTypeObjectTypeType of the object.
namestringName of the object.
Returns
- bool
trueif 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
objectTypeObjectTypeType of the object.
namestringName of the object.
updateActionSchemaUpdateActionUpdate action.
Returns
- bool
trueif 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
objectTypeObjectTypeType of the object.
namestringName of the object.
Returns
- bool
trueif 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
objectTypeObjectTypeType of the object.
namestringName of the object.
Returns
- bool
trueif the object with the specified type was deleted; otherwise,false.
Remarks
For the Column the name must be prefixed with the table name.