Esempio n. 1
0
        /// <summary>
        /// 在此实例的结尾追加指定字符串的副本。
        /// </summary>
        public ISqlBuilder Append(object value, MemberVisitedStack.VisitedMember m)
        {
            var sqlExpression = _constor.GetSqlValue(value, _context, m);

            return(this.Append(sqlExpression));
        }
Esempio n. 2
0
        /// <summary>
        /// 生成 value 对应的 SQL 片断
        /// </summary>
        /// <param name="value">SQL值</param>
        /// <param name="token">解析SQL命令上下文</param>
        /// <param name="m">value 对应的成员</param>
        /// <returns></returns>
        public string GetSqlValue(object value, ITranslateContext token, MemberVisitedStack.VisitedMember m)
        {
            ColumnAttribute column = m != null?TypeUtils.GetColumnAttribute(m.Member, m.ReflectedType) : null;

            return(this.GetSqlValue(value, token, column));
        }