public static IEnumerable <string> GetNormalizedDbKeys(string category, string collection, string key) { var primaryKey = new KeyValueDataKeys(category, collection, key); yield return(primaryKey.Category); yield return(primaryKey.Collection); yield return(primaryKey.Key); }
public static KeyValueData Create(string category, string collection, string key, string metadata, string keywords) { var primaryKey = new KeyValueDataKeys(category, collection, key); return(new KeyValueData { Category = primaryKey.Category, Collection = primaryKey.Collection, Key = primaryKey.Key, DisplayCategory = category, DisplayCollection = collection, DisplayKey = key, MetaData = metadata, Keywords = keywords }); }