public Intersection(Table origin, Table destination) { //todo this will need to hold column renames as well _origin = origin; _destination = destination; _intersect = _origin.Columns.Intersect(_destination.Columns).ToList(); }
public Migrator(Table origin, IDbConnection connection) { _origin = origin; _connection = connection; _statements = new List<string>(); _dateTimeStamp = DateTime.UtcNow.ToString(_dateFormat); }
public Entangler(TableMigration migration, IDbConnection connection) { _connection = connection; _intersection = migration.Intersection; _origin = migration.Origin; _destination = migration.Destination; }
public Table Parse() { var indiciesInformation = ReadIndicesInformation(); var table = new Table(_tableName, ReadPrimaryKey(indiciesInformation), ReadColumnInformation(), indiciesInformation, BuildDdl()); return table; }
public Invoker(Table origin, IDbConnection connection) { _connection = connection; _migrator = new Migrator(origin, connection); }
public TableMigration(Table origin, Table destination, string dateTimeStamp) { _origin = origin; _destination = destination; _dateTimeStamp = dateTimeStamp; }