Пример #1
0
        /// <summary>
        /// Hydrates the specified domain object.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="domainObject">The domain object.</param>
        public virtual void Hydrate <T>(DomainObject <T> domainObject)
            where T : IDomainObject
        {
            var l = (ILinkable)domainObject;

            if (l == null)
            {
                return;
            }
            try
            {
                l.HydrateLinks();
            }
            catch (Exception exception)
            {
                domainObject.AddError(exception.Message);
            }


            //var t = domainObject as ITranslatable;
            //if(t != null)
            //    t.HydrateTranslations();
        }