码迷,mamicode.com
首页 > Web开发 > 详细

ibatis.net 循环

时间:2019-03-04 09:47:41      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:bat   orm   .net   its   end   iba   ibatis   list   ati   

if (oReqV[0]["tag"] != null && !string.IsNullOrEmpty(oReqV[0]["tag"].ToString()))
{
string[] str = StringHelps.SplitString(oReqV[0]["tag"].ToString(), ",");
List<string> personList = new List<string>();
foreach(string s in str)
{
personList.Add(string.Format("%{0}%",s));
}
ht.Add("TagList", personList);
}

 

<isPropertyAvailable property="TagList">
<isNotEmpty property="TagList">
<iterate property="TagList" prepend="AND" open="(" close=")" conjunction="OR">
<![CDATA[Tag LIKE #TagList[]# ]]>
</iterate>
</isNotEmpty>
</isPropertyAvailable>

ibatis.net 循环

标签:bat   orm   .net   its   end   iba   ibatis   list   ati   

原文地址:https://www.cnblogs.com/wdkshy/p/10468614.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!