Beispiel #1
0
        public static void Read(
            Dictionary <string, UserTable> userTables,
            IDataReader reader)
        {
            var factory = new UserTableColumnFactory(reader);

            while (reader.Read())
            {
                factory.CreateUserTableColumn(userTables, reader);
            }
        }
Beispiel #2
0
        public static async Task ReadAsync(
            Dictionary <string, UserTable> userTables,
            DbDataReader reader,
            CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();
            var factory = new UserTableColumnFactory(reader);

            while (await reader.ReadAsync(cancellationToken))
            {
                cancellationToken.ThrowIfCancellationRequested();
                factory.CreateUserTableColumn(userTables, reader);
            }
        }