private IEnumerable <NamedValue> ConvertConceptualToClrValues(string entityTypeFullName, IEnumerable <NamedValue> conceptulValues)
            {
                var result = new List <NamedValue>();

                foreach (var value in conceptulValues)
                {
                    string key = entityTypeFullName + ":" + value.Name;
                    Type   enumType;
                    var    valueToAdd = value;
                    if (this.propertyPathToEnumTypeMap.TryGetValue(key, out enumType))
                    {
                        valueToAdd = new NamedValue(value.Name, DataUtilities.ConvertToEnum(enumType, value.Value));
                    }

                    result.Add(valueToAdd);
                }

                return(result);
            }
Пример #2
0
 private object TranslateEnum(Type clrEnumType, object member)
 {
     return(DataUtilities.ConvertToEnum(clrEnumType, member));
 }