C# Class EAAddinFramework.Databases.Compare.EADatabaseComparer

Description of EADatabaseComparer.
Inheritance: DatabaseComparer
Exibir arquivo Open project: GeertBellekens/Enterprise-Architect-Add-in-Framework

Public Methods

Method Description
EADatabaseComparer ( Database newDatabase, Database existingDatabase ) : System
addComparisonDetails ( EADatabaseItemComparison comparedItem ) : List
compare ( ) : void
save ( ) : void
setOverride ( DatabaseItemComparison overrideCompare, bool overrideValue, List updatedNewItems = null ) : void
updateOverrides ( List tableComparisons ) : void

for each overridden existing item we update the new item, but only if this is the only existing item referencing the new item. If there are more then we need to duplicate the columns in the new database

Private Methods

Method Description
addTableComparison ( EADatabaseItemComparison tableComparison ) : void
addToComparison ( DatabaseItemComparison comparedItem ) : void
addToComparison ( List addedComparedItems ) : void

Method Details

EADatabaseComparer() public method

public EADatabaseComparer ( Database newDatabase, Database existingDatabase ) : System
newDatabase EAAddinFramework.Databases.Database
existingDatabase EAAddinFramework.Databases.Database
return System

addComparisonDetails() public method

public addComparisonDetails ( EADatabaseItemComparison comparedItem ) : List
comparedItem EADatabaseItemComparison
return List

compare() public method

public compare ( ) : void
return void

save() public method

public save ( ) : void
return void

setOverride() public method

public setOverride ( DatabaseItemComparison overrideCompare, bool overrideValue, List updatedNewItems = null ) : void
overrideCompare DatabaseItemComparison
overrideValue bool
updatedNewItems List
return void

updateOverrides() public method

for each overridden existing item we update the new item, but only if this is the only existing item referencing the new item. If there are more then we need to duplicate the columns in the new database
public updateOverrides ( List tableComparisons ) : void
tableComparisons List
return void