/// <summary> /// 生成 value 对应的 SQL 片断 /// </summary> /// <param name="value">SQL值</param> /// <param name="member">成员</param> /// <param name="runtimeType">成员所在类型</param> /// <returns></returns> public string GetSqlValue(object value, MemberInfo member, Type runtimeType) { ColumnAttribute attribute = this.GetColumnAttribute(member, runtimeType); return(this.GetSqlValue(value, attribute)); }
/// <summary> /// 生成 value 对应的 SQL 片断 /// </summary> /// <param name="value">SQL值</param> /// <param name="token">解析上下文</param> /// <param name="m">value 对应的成员</param> /// <returns></returns> public string GetSqlValue(object value, ResolveToken token, MemberVisitedStack.VisitedMember m) { ColumnAttribute column = m != null?TypeUtils.GetColumnAttribute(m.Member, m.ReflectedType) : null; return(this.GetSqlValue(value, token, column)); }