コード例 #1
0
        private PropertyInfo GetPropertyFromColumn(string column)
        {
            var mapping = Mapper.Mappings.SingleOrDefault(m => m.ColumnName == column);

            return(mapping == null
               ? AllProperties.SingleOrDefault(p => p.Name == column)
               : AllProperties.SingleOrDefault(p => p.Name == mapping.PropertyName));
        }