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