public static void Read( Dictionary <string, UserTable> userTables, Dictionary <string, UniqueConstraintColumn> uniqueConstraintColumns, IDataReader reader) { var factory = new UniqueConstraintFactory(reader); while (reader.Read()) { factory.CreateUniqueConstraint(userTables, uniqueConstraintColumns, reader); } }
public static async Task ReadAsync( Dictionary <string, UserTable> userTables, Dictionary <string, UniqueConstraintColumn> uniqueConstraintColumns, DbDataReader reader, CancellationToken cancellationToken = default(CancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); var factory = new UniqueConstraintFactory(reader); while (await reader.ReadAsync(cancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); factory.CreateUniqueConstraint(userTables, uniqueConstraintColumns, reader); } }