Beispiel #1
0
        /// <summary>
        /// Include navigation property to be included. in returned query.
        /// </summary>
        /// <param name="path">Property path to be included.</param>
        public IQueryConstraints <T> IncludePath(Expression <Func <T, object> > property)
        {
            if (property == null)
            {
                throw new ArgumentNullException(nameof(property));
            }

            MemberExpression expression = property.GetMemberInfo();
            string           name       = expression.GetName();

            IncludePath(name);

            return(this);
        }