Esempio n. 1
0
        public virtual IDictionary <string, string> GetPropertyExtensionFieldDictionary(string attributeSetId)
        {
            var attrSet = AttributeSetStateQueryRepository.Get(attributeSetId);
            Func <string, IAttributeState> getAttributeState = (aId => AttributeStateQueryRepository.Get(aId));
            var pDic = GetPropertyExtensionFieldDictionary(attrSet, getAttributeState);

            return(pDic);
        }
Esempio n. 2
0
        public virtual IDictionary <string, string> GetExtensionPropertyFieldDictionary(string attributeSetId)
        {
            var attrSet = AttributeSetStateQueryRepository.Get(attributeSetId);
            var pDic    = new Dictionary <string, string>();

            if (attrSet != null)
            {
                foreach (var au in attrSet.AttributeUses)
                {
                    var a = AttributeStateQueryRepository.Get(au.AttributeId);
                    if (a != null)
                    {
                        pDic.Add(a.Name, a.FieldName);
                    }
                }
            }
            return(pDic);
        }