예제 #1
0
 internal StreamTableColWStreamName(
     StreamTableColPair pair,
     string optionalStreamName)
 {
     Pair = pair;
     OptionalStreamName = optionalStreamName;
 }
예제 #2
0
        private StreamTableColPair FindTableColumnAcrossStreams(StreamTypeService streamTypeService, string columnName)

        {
            StreamTableColPair found = null;

            for (var i = 0; i < streamTypeService.EventTypes.Length; i++)
            {
                var type = streamTypeService.EventTypes[i];
                var pair = FindTableColumnForType(i, type, columnName);
                if (pair == null)
                {
                    continue;
                }
                if (found != null)
                {
                    if (streamTypeService.IsStreamZeroUnambigous && found.StreamNum == 0)
                    {
                        continue;
                    }
                    throw new ExprValidationException("Ambiguous table column '" + columnName + "' should be prefixed by a stream name");
                }
                found = pair;
            }
            return(found);
        }