liyonghui

导航

09 2012 档案

ibatis传入固定参数 提高sql执行效率
摘要:<?xml version="1.0" encoding="utf-8" ?><sqlMap namespace="Account" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <alias> <typeAlias alias="ContentObject" type="Dao 阅读全文

posted @ 2012-09-21 18:45 李永辉 阅读(289) 评论(0) 推荐(0)

StrToUnicode C#语言如何将汉字转换成Unicode字符
摘要:public static string StrToUnicode(string str) { StringBuilder sb = new StringBuilder(); if (!string.IsNullOrEmpty(str)) { for (int i = 0; i < str.Length; i++) { sb.Append( "\\u" + ((int)str[i]).ToString("x")); } } return sb.ToString(); } 阅读全文

posted @ 2012-09-21 18:25 李永辉 阅读(291) 评论(0) 推荐(0)