コード例 #1
0
ファイル: EntityMap.cs プロジェクト: markchipman/RomanticWeb
        /// <summary>Gets a builder for mapping a dictionary property.</summary>
        protected IDictionaryMap Dictionary <TReturnType>(Expression <Func <TEntity, TReturnType> > prop)
        {
            var dictionaryMap = new DictionaryMap(prop.ExtractPropertyInfo());

            MappedProperties.Add(dictionaryMap);
            return(dictionaryMap);
        }
コード例 #2
0
        public IPropertyMappingProvider Visit(DictionaryMap dictionaryMap, IPredicateMappingProvider key, IPredicateMappingProvider value)
        {
            var propertyMapping = CreatePropertyMapping(dictionaryMap, _log);

            return(new DictionaryMappingProvider(propertyMapping, key, value));
        }