Пример #1
0
        protected virtual string GetColumnName <TKey>(Expression <Func <TEntity, TKey> > expr)
        {
            IPropertyMapper propertyMapper = expressionParser.GetPropertyMapper(expr);

            if (propertyMapper == null)
            {
                throw new MapleException("Unable to get property information.");
            }

            return(propertyMapper.ColumnName);
        }