コード例 #1
0
        public static void Read(
            Dictionary <string, UserTable> userTables,
            IDataReader reader)
        {
            var factory = new DefaultConstraintFactory(reader);

            while (reader.Read())
            {
                factory.CreateDefaultConstraint(userTables, reader);
            }
        }
コード例 #2
0
        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);
            }
        }