Example #1
0
        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);
        }
Example #2
0
        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
            });
        }