Beispiel #1
0
 public string GetProductPreviewInfo()
 {
     return(string.Join(" | ",
                        DynamicProperties.Where(obj => !obj.IsBool)
                        .Take(6)
                        .Select(i => string.Format("{0}: {1}", i.Key, i.Value))));
 }
        public DynamicPropertyEntity[] GetObjectDynamicProperties(string objectType, string objectId)
        {
            var retVal = DynamicProperties.Where(x => x.ObjectType == objectType)
                         .OrderBy(x => x.Name)
                         .ToArray();
            var propertyIds = retVal.Select(x => x.Id).ToArray();
            var proprValues = DynamicPropertyObjectValues.Include(x => x.DictionaryItem)
                              .Where(x => propertyIds.Contains(x.PropertyId) && x.ObjectId == objectId).ToArray();

            return(retVal);
        }