public static Dictionary <string, object> ContentToDictionary(ContentInfo contentInfo, string tableName, List <int> relatedIdentities) { var dict = TranslateUtils.ObjectToDictionary(contentInfo); dict.Remove("Attributes"); var styleInfoList = TableStyleManager.GetTableStyleInfoList(tableName, relatedIdentities); foreach (var styleInfo in styleInfoList) { if (!dict.ContainsKey(styleInfo.AttributeName)) { dict[styleInfo.AttributeName] = contentInfo.GetString(styleInfo.AttributeName); } if (styleInfo.InputType == InputType.Image) { var extendName = ContentAttribute.GetExtendAttributeName(styleInfo.AttributeName); var extendValue = contentInfo.GetString(extendName); if (!string.IsNullOrEmpty(extendValue)) { dict[extendName] = extendValue; } } } return(dict); }