public DataExporter(string serverName, string databaseName, string configServerName, string configDatabaseName) { ServerName = serverName; DatabaseName = databaseName; PrimaryKeyConstraints = DataReader.GetPrimaryKeyConstraintsFromDatabase(ServerName, DatabaseName); ForeignKeyConstraints = DataReader.GetForeignKeyConstraintsFromDatabase(ServerName, DatabaseName); SoftConstraints = DataReader.GetSoftConstraintsFromDatabase(configServerName, configDatabaseName); IgnoredDependencyLists = DataReader.GetIgnoredDependenciesFromDatabase(configServerName, configDatabaseName); List <ForeignKeyConstraint> allDependencies = new List <ForeignKeyConstraint>(ForeignKeyConstraints); allDependencies.AddRange(SoftConstraints); DependencyBuilder dependencyBuilder = new DependencyBuilder(); DependencyGraph = dependencyBuilder.BuildDependency(allDependencies); }