// 获取 String 类型的 SQL 片断 protected override string GetSqlValueByString(object value, object dbType, int?size = null) { bool unicode = SqlDbTypeInfo.IsUnicode2(dbType); string result = this.EscapeQuote(value.ToString(), unicode, true); return(result); }
/// <summary> /// 判断指定类型是否是unicode /// </summary> protected virtual bool IsUnicode(object dbType) { return(SqlDbTypeInfo.IsUnicode2(dbType)); }