/// <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); }
public BadEntityContainer(string qualifiedName, IEnumerable <EdmError> errors) : base(errors) { qualifiedName = qualifiedName ?? string.Empty; EdmUtil.TryGetNamespaceNameFromQualifiedName(qualifiedName, out this.namespaceName, out this.name); }
/// <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); }
/// <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; }
/// <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); }
public BadTypeDefinition(string qualifiedName, IEnumerable <EdmError> errors) : base(errors) { qualifiedName = qualifiedName ?? string.Empty; EdmUtil.TryGetNamespaceNameFromQualifiedName(qualifiedName, out this.namespaceName, out this.name); }
/// <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; }
/// <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(); }
protected BadNamedStructuredType(string qualifiedName, IEnumerable <EdmError> errors) : base(errors) { qualifiedName = qualifiedName ?? string.Empty; EdmUtil.TryGetNamespaceNameFromQualifiedName(qualifiedName, out this.namespaceName, out this.name); }