Esempio n. 1
0
        /// <summary>
        /// Gets the parent for the given entity.
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="link"></param>
        /// <returns></returns>
        protected override object LoadParent(object entity, ChildToParentEntityLink link)
        {
            if (entity == null)
            {
                throw new ArgumentNullException("entity");
            }
            if (link == null)
            {
                throw new ArgumentNullException("link");
            }

            // defer...
            return(SqlFilter.CreateGetParentFilter(entity, link).ExecuteEntity());
        }