public virtual string ColumnName(PropertyInfo p)
        {
            var columnName = p.Name;

            var attrs = p.GetCustomAttributes(true);

            foreach (var attr in attrs)
            {
                if (attr is BindingColumn)
                {
                    BindingColumn a = (BindingColumn)attr;
                    columnName = a.getName();
                }
            }

            return(columnName);
        }
        public virtual string ColumnName(object table, string column)
        {
            var p = table.GetType().GetProperty(column);

            var columnName = p.Name;

            var attrs = p.GetCustomAttributes(true);

            foreach (var attr in attrs)
            {
                if (attr is BindingColumn)
                {
                    BindingColumn a = (BindingColumn)attr;
                    columnName = a.getName();
                }
            }

            return(columnName);
        }