protected override Expression VisitMember(MemberExpression m)
        {
            var propName = m.GetPropertyName(_options);

            _sb.Append($"\"{propName}\"");
            return(m);
        }
Пример #2
0
        private string GetColumnName(MemberExpression member)
        {
            var tableType = member.Expression.Type;
            var info      = _factory.GetInfo(tableType);

            if (_visitingBinary)
            {
                _columnInfos.Push(info[member.GetPropertyName()]);
            }
            return(info.GetColumnName(member, EscapeIdentifiers? _escape:null));
        }