private static string GetValue(MemberExpression member)
        {
            DataColumnAttribute attribute = (DataColumnAttribute)member.Member.GetCustomAttribute(typeof(DataColumnAttribute));

            if (attribute != null)
            {
                return(attribute.Column);
            }

            var           objectMember = Expression.Convert(member, typeof(object));
            var           getterLambda = Expression.Lambda <Func <object> >(objectMember);
            Func <object> getter       = getterLambda.Compile();

            return(getter().ToString());
        }
 public PropertyData(PropertyInfo propertyInfo, DataColumnAttribute columnData)
 {
     PropertyInfo = propertyInfo;
     ColumnData   = columnData;
 }