基本信息
源码名称:C#中实现对sqlite数据库的存储操作
源码大小:3.30M
文件格式:.zip
开发语言:C#
更新时间:2017-07-27
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 1 元 
   源码介绍
C#中实现对sqlite数据库的存储操作,可以添加数据和查询数据

//先显示holtel           
            int RecordCount = 0;
            StringBuilder asshotel = new StringBuilder("");
            StringBuilder asshotel2 = new StringBuilder("");                     
            asshotel.Append("Select count(1) as co from hotel");
            DataSet dshotel = new DataSet();
            dshotel = DbHelperSQLite.Query(asshotel.ToString());
            RecordCount = Int32.Parse(dshotel.Tables[0].Rows[0][0].ToString());//获取数据的记录条数           
            asshotel2.Append("select  hotelname  from hotel");
            DataSet dshotel2 = new DataSet();
            dshotel2 = DbHelperSQLite.Query(asshotel2.ToString());
            for (int i = 0; i < RecordCount; i )
            {
                DropDLhotel.Items.Add(new ListItem(dshotel2.Tables[0].Rows[i][0].ToString(), Convert.ToString(i)));
            }