Asp.net源码专业站
首页->电子商务->MyShop网络商城080617源码>>AccessDAL/Category.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:MyShop网络商城080617源码
当前文件:文件类型 MyShop080617/AccessDAL/Category.cs[8K,2009-6-12 11:48:22]打开代码结构图
普通视图
		            
1using System; 2using System.Collections.Generic; 3 4using System.Data; 5using System.Data.OleDb; 6using MyShop.IDAL; 7using MyShop.Model; 8 9namespace MyShop.AccessDAL 10{ 11 public class Category:ICategory 12 { 13 private ConfigInfo configInfo = new ConfigInfo(); 14 private string tableName = "Ljh_ProductCategory"; 15 16 public Category() 17 { 18 if (!string.IsNullOrEmpty(configInfo.TablePrefix.Trim())) 19 tableName = configInfo.TablePrefix + "ProductCategory"; 20 } 21 ICategory member 244 245 /// <summary> 246 /// 高级查询 247 /// </summary> 248 /// <param name="field"></param> 249 /// <param name="keywords"></param> 250 /// <returns></returns> 251 public DataSet KeywordsSearch(string field, string keywords) 252 { 253 string filter = ""; 254 if (field.ToLower() == "Productkindname") 255 { 256 filter = " ProductKindId in ( select ProductKindId from " + configInfo.TablePrefix + "ProductKinds where ProductKindName like '%" + keywords + "%' ) " ; 257 } 258 259 else 260 { 261 filter = " " + field + " like '%" + keywords + "%'"; 262 } 263 264 return GetDataSet(filter); 265 } 266 267 268 } 269} 270
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:MyShop网络商城080617源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146