/// <summary> /// Serializes the extended data collection to an JSON representation /// </summary> /// <param name="entity"> /// The entity. /// </param> /// <returns> /// The <see cref="string"/>. /// </returns> public static string ExtendedDataAsJson(this IHasExtendedData entity) { return JsonConvert.SerializeObject(entity.ExtendedData.AsEnumerable()); }
/// <summary> /// The resolve core. /// </summary> /// <param name="source"> /// The source. /// </param> /// <returns> /// A collection of key value pairs that represent an <see cref="ExtendedDataCollection"/> /// </returns> protected override IEnumerable <KeyValuePair <string, string> > ResolveCore(IHasExtendedData source) { return(source.ExtendedData.AsEnumerable()); }