Ejemplo n.º 1
0
        public static string GetFullPropertyName <TSource, TField>(Expression <Func <TSource, TField> > field)
        {
            var path = new PropertyPathVisitor().GetPropertyPath(field);

            if (path.DeclaringType != null)
            {
                return($"{path.DeclaringType.FullName}.{path.Name}");
            }

            return(string.Empty);
        }
        public static string GetFullPropertyName <TSource, TField>(Expression <Func <TSource, TField> > field)
        {
            var path = new PropertyPathVisitor().GetPropertyPath(field);

            return(path.DeclaringType != null ? path.DeclaringType.FullName + "." + path.Name : string.Empty);
        }