internal static bool TryGetNamespaceNameFromQualifiedName(string qualifiedName, out string namespaceName, out string name, out string fullName) { bool foundNamespace = EdmUtil.TryGetNamespaceNameFromQualifiedName(qualifiedName, out namespaceName, out name); fullName = EdmUtil.GetFullNameForSchemaElement(namespaceName, name); return(foundNamespace); }
public AmbiguousTypeBinding(IEdmSchemaType first, IEdmSchemaType second) : base(first, second) { Debug.Assert(first.Namespace == second.Namespace, "Schema elements should only be ambiguous with other elements in the same namespace"); this.namespaceName = first.Namespace ?? string.Empty; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.namespaceName, this.Name); }
public AmbiguousEntityContainerBinding(IEdmEntityContainer first, IEdmEntityContainer second) : base(first, second) { // Ambiguous entity containers can be produced by either searching for full name or simple name. // This results in the reported NamespaceName being ambiguous so the first one is selected arbitrarily. this.namespaceName = first.Namespace ?? string.Empty; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.namespaceName, this.Name); }
/// <summary> /// Initializes a new instance of the <see cref="EdmEntityContainer"/> class. /// </summary> /// <param name="namespaceName">Namespace of the entity container.</param> /// <param name="name">Name of the entity container.</param> public EdmEntityContainer(string namespaceName, string name) { EdmUtil.CheckArgumentNull(namespaceName, "namespaceName"); EdmUtil.CheckArgumentNull(name, "name"); this.namespaceName = namespaceName; this.name = name; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.namespaceName, this.Name); }
/// <summary> /// Initializes a new instance of the <see cref="EdmStructuredType"/> class. /// </summary> /// <param name="namespaceName">The namespace this type belongs to.</param> /// <param name="name">The name of this type within its namespace.</param> public EdmUntypedStructuredType(string namespaceName, string name) : base(/*isAbstract*/ true, /*isOpen*/ true, /*baseType*/ null) { EdmUtil.CheckArgumentNull(namespaceName, "namespaceName"); EdmUtil.CheckArgumentNull(name, "name"); this.namespaceName = namespaceName; this.name = name; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.namespaceName, this.name); }
/// <summary> /// Initializes a new instance of the <see cref="EdmAction"/> class. /// </summary> /// <param name="namespaceName">Name of the namespace.</param> /// <param name="name">The name.</param> /// <param name="returnType">Type of the return.</param> /// <param name="isBound">if set to <c>true</c> [is bound].</param> /// <param name="entitySetPathExpression">The entity set path expression.</param> protected EdmOperation(string namespaceName, string name, IEdmTypeReference returnType, bool isBound, IEdmPathExpression entitySetPathExpression) : base(name) { EdmUtil.CheckArgumentNull(namespaceName, "namespaceName"); this.ReturnType = returnType; this.Namespace = namespaceName; this.IsBound = isBound; this.EntitySetPath = entitySetPathExpression; this.fullName = EdmUtil.GetFullNameForSchemaElement(namespaceName, this.Name); }
/// <summary> /// Initializes a new instance of the <see cref="EdmEntityType"/> class. /// </summary> /// <param name="namespaceName">Namespace the entity belongs to.</param> /// <param name="name">Name of the entity.</param> /// <param name="baseType">The base type of this entity type.</param> /// <param name="isAbstract">Denotes an entity that cannot be instantiated.</param> /// <param name="isOpen">Denotes if the type is open.</param> /// <param name="hasStream">Denotes if the type is a media type.</param> public EdmEntityType(string namespaceName, string name, IEdmEntityType baseType, bool isAbstract, bool isOpen, bool hasStream) : base(isAbstract, isOpen, baseType) { EdmUtil.CheckArgumentNull(namespaceName, "namespaceName"); EdmUtil.CheckArgumentNull(name, "name"); this.namespaceName = namespaceName; this.name = name; this.hasStream = hasStream; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.namespaceName, this.Name); }
/// <summary> /// Initializes a new instance of the <see cref="EdmEnumType"/> class. /// </summary> /// <param name="namespaceName">Namespace this enumeration type belongs to.</param> /// <param name="name">Name of this enumeration type.</param> /// <param name="underlyingType">The underlying type of this enumeration type.</param> /// <param name="isFlags">A value indicating whether the enumeration type can be treated as a bit field.</param> public EdmEnumType(string namespaceName, string name, IEdmPrimitiveType underlyingType, bool isFlags) { EdmUtil.CheckArgumentNull(underlyingType, "underlyingType"); EdmUtil.CheckArgumentNull(namespaceName, "namespaceName"); EdmUtil.CheckArgumentNull(name, "name"); this.underlyingType = underlyingType; this.name = name; this.namespaceName = namespaceName; this.isFlags = isFlags; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.namespaceName, this.name); }
public AmbiguousTermBinding(IEdmTerm first, IEdmTerm second) : base(first, second) { this.first = first; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.Namespace, this.Name); }
public AmbiguousOperationBinding(IEdmOperation first, IEdmOperation second) : base(first, second) { this.first = first; this.fullName = EdmUtil.GetFullNameForSchemaElement(this.Namespace, this.Name); }