Beispiel #1
0
 /// <summary>
 /// Gets the descriptions.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="displayName">The display name.</param>
 /// <returns>Description[].</returns>
 private static Description[] GetDescriptions(string id, string displayName)
 {
     //return TaxonomyProvider
     //    .Translations
     //    .GetDescriptionsForObject(id, displayName);
     return(TaxonomyDomainGenerator.InflateDefaultDescriptions(id, displayName));
 }
Beispiel #2
0
        /// <summary>
        /// Gets the description items for object.
        /// </summary>
        /// <param name="objectId">The object id.</param>
        /// <param name="displayName"></param>
        /// <returns>Description[][].</returns>
        public Description[] GetDescriptionsForObject(string objectId, string displayName)
        {
            var req = new WhereRequest()
            {
                Field = "ObjectId", Value = objectId
            };
            var res = Provider <Description>
                      .Where(req);

            if (res.Length == 0)
            {
                res = TaxonomyDomainGenerator.InflateDefaultDescriptions(objectId, displayName);
            }
            return(res);
        }
Beispiel #3
0
 /// <summary>
 /// Registers the required domain objects.
 /// </summary>
 public void RegisterRequiredDomainObjects()
 {
     Provider <Setting> .Save(TaxonomyDomainGenerator.CreateDefaultSetting());
 }