public ICollectionMappingProvider Visit(CollectionAttribute collectionAttribute, PropertyInfo property)
        {
            var propertyMapping = CreatePropertyMapping(collectionAttribute, property);
            var result = new CollectionMappingProvider(propertyMapping, collectionAttribute.StoreAs);
            if (collectionAttribute.ElementConverterType != null)
            {
                result.ElementConverterType = collectionAttribute.ElementConverterType;
            }

            return result;
        }
Exemplo n.º 2
0
        public ICollectionMappingProvider Visit(CollectionAttribute collectionAttribute, PropertyInfo property)
        {
            var propertyMapping = CreatePropertyMapping(collectionAttribute, property, _log);
            var result          = new CollectionMappingProvider(propertyMapping, collectionAttribute.StoreAs);

            if (collectionAttribute.ElementConverterType != null)
            {
                result.ElementConverterType = collectionAttribute.ElementConverterType;
            }

            return(result);
        }