Beispiel #1
0
 public override object GetValue(IValueFields valueFields)
 {
     if (!(valueFields.TextValue is null) && !(valueFields.TextValue2 is null))
     {
         return(mappings.GetJPAEntity(valueFields.TextValue, valueFields.TextValue2));
     }
     return(null);
 }
        public override object GetValue(IValueFields valueFields)
        {
            byte[] bytes = valueFields.Bytes;
            if (!(valueFields.TextValue is null) && !(bytes is null))
            {
                string entityClass = valueFields.TextValue;

                IList <object> result = new List <object>();
                string[]       ids    = DeserializeIds(bytes);

                foreach (string id in ids)
                {
                    result.Add(mappings.GetJPAEntity(entityClass, id));
                }

                return(result);
            }
            return(null);
        }