Ejemplo n.º 1
0
        private void HandleOnOperationElement(XmlReader reader, Operation operation)
        {
            foreach (OnOperation operation1 in (IEnumerable <OnOperation>) this.Operations)
            {
                if (operation1.Operation == operation)
                {
                    this.AddError(ErrorCode.InvalidOperation, EdmSchemaErrorSeverity.Error, reader, (object)Strings.DuplicationOperation((object)reader.Name));
                }
            }
            OnOperation onOperation = new OnOperation(this, operation);

            onOperation.Parse(reader);
            this._operations.Add(onOperation);
        }
Ejemplo n.º 2
0
        // <summary>
        // Handle an On&lt;Operation&gt; element
        // </summary>
        // <param name="reader"> reader positioned at the element </param>
        // <param name="operation"> the kind of operation being handled </param>
        private void HandleOnOperationElement(XmlReader reader, Operation operation)
        {
            DebugCheck.NotNull(reader);

            foreach (var other in Operations)
            {
                if (other.Operation == operation)
                {
                    AddError(ErrorCode.InvalidOperation, EdmSchemaErrorSeverity.Error, reader, Strings.DuplicationOperation(reader.Name));
                }
            }

            var onOperation = new OnOperation(this, operation);

            onOperation.Parse(reader);
            _operations.Add(onOperation);
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Handle an On&lt;Operation&gt; element
        /// </summary>
        /// <param name="reader"> reader positioned at the element </param>
        /// <param name="operation"> the kind of operation being handled </param>
        private void HandleOnOperationElement(XmlReader reader, Operation operation)
        {
            DebugCheck.NotNull(reader);

            foreach (var other in Operations)
            {
                if (other.Operation == operation)
                {
                    AddError(ErrorCode.InvalidOperation, EdmSchemaErrorSeverity.Error, reader, Strings.DuplicationOperation(reader.Name));
                }
            }

            var onOperation = new OnOperation(this, operation);
            onOperation.Parse(reader);
            _operations.Add(onOperation);
        }