Ejemplo n.º 1
0
        /// <summary>
        /// Adds a parameter to this function (as the last parameter).
        /// </summary>
        /// <param name="parameter">The parameter being added.</param>
        public void AddParameter(IEdmOperationParameter parameter)
        {
            EdmUtil.CheckArgumentNull(parameter, "parameter");

            this.parameters.Add(parameter);
        }
Ejemplo n.º 2
0
 public BadEntityContainer(string qualifiedName, IEnumerable <EdmError> errors)
     : base(errors)
 {
     qualifiedName = qualifiedName ?? string.Empty;
     EdmUtil.TryGetNamespaceNameFromQualifiedName(qualifiedName, out this.namespaceName, out this.name);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds a model reference to this model.
 /// </summary>
 /// <param name="model">The model to reference.</param>
 protected void AddReferencedModel(IEdmModel model)
 {
     EdmUtil.CheckArgumentNull(model, "model");
     this.referencedEdmModels.Add(model);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EdmNamedElement"/> class.
        /// </summary>
        /// <param name="name">Name of the element.</param>
        protected EdmNamedElement(string name)
        {
            EdmUtil.CheckArgumentNull(name, "name");

            this.name = name;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Adds a schema element to this model.
 /// </summary>
 /// <param name="element">The element to register.</param>
 protected void RegisterElement(IEdmSchemaElement element)
 {
     EdmUtil.CheckArgumentNull(element, "element");
     RegistrationHelper.RegisterSchemaElement(element, this.schemaTypeDictionary, this.termDictionary, this.functionDictionary, this.containersDictionary);
 }
Ejemplo n.º 6
0
 public BadTypeDefinition(string qualifiedName, IEnumerable <EdmError> errors)
     : base(errors)
 {
     qualifiedName = qualifiedName ?? string.Empty;
     EdmUtil.TryGetNamespaceNameFromQualifiedName(qualifiedName, out this.namespaceName, out this.name);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdmPathExpression"/> class.
 /// </summary>
 /// <param name="path">Path string containing segments separated by '/'. For example: "A.B/C/D.E/Func1(NS.T,NS.T2)/P1".</param>
 public EdmPathExpression(string path)
 {
     EdmUtil.CheckArgumentNull(path, "path");
     this.path = path;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of <see cref="EdmReferentialConstraint"/>.
 /// </summary>
 /// <param name="propertyPairs">The set of property pairs from the referential constraint.</param>
 public EdmReferentialConstraint(IEnumerable <EdmReferentialConstraintPropertyPair> propertyPairs)
 {
     EdmUtil.CheckArgumentNull(propertyPairs, "propertyPairs");
     this.propertyPairs = propertyPairs.ToList();
 }
Ejemplo n.º 9
0
 protected BadNamedStructuredType(string qualifiedName, IEnumerable <EdmError> errors)
     : base(errors)
 {
     qualifiedName = qualifiedName ?? string.Empty;
     EdmUtil.TryGetNamespaceNameFromQualifiedName(qualifiedName, out this.namespaceName, out this.name);
 }