Beispiel #1
0
        private static IEdmCollectionType GetCollectionType(ConstructableMetadata model, IEdmPrimitiveTypeReference primitiveItemType, string itemTypeName)
        {
            if (primitiveItemType != null)
            {
                return new EdmCollectionType(primitiveItemType);
            }
            
            IEdmType itemType = model.FindDeclaredType(itemTypeName);
            IEdmComplexType complexItemType = itemType as IEdmComplexType;
            if (complexItemType != null)
            {
                return new EdmCollectionType(complexItemType.ToTypeReference());
            }

            return null;
        }