/// <summary> /// Create a record content builder for data. /// </summary> /// <param name="data">The data to add to record builder</param> /// <returns>A record content builder</returns> public static CreateRecordRequest.IContentBuilder ToRecordBuilder(this IEnumerable <KeyValuePair <string, object> > data, ResourceId resource) { return(data.Aggregate(resource.ToRecordBuilder(), (builder, entry) => builder.Append(entry.Key, entry.Value))); }