码迷,mamicode.com
首页 >  
搜索关键字:ado    ( 5381个结果
C# CreateDataAdapter 创建 DbDataAdapter,以及用DataTable的Load方法获取数据
ADO.NET中 有了DbConnection,就可用DbConnection的CreateCommand创建DbCommand,BeginTransaction创建DbTransaction可以十分方便的实现工厂模式,操作不同的数据库。但是唯独DbDataAdapter这个重要的对象无法通过DbC...
分类:数据库   时间:2014-08-04 01:59:16    阅读次数:694
asp.net连接mysql数据库
方法一:使用MySQL推出的MySQL Connector/Net组件, 该组件是MySQL为ADO.NET访问MySQL数据库设计的.NET专用访问组件。完成该组件后,需要在项目中引用这个组件,也可以直接在配置文件的节点内添加下面的节点:之后在程序中引用命名空间MySql.Data.MySqlCl...
分类:数据库   时间:2014-08-04 01:56:36    阅读次数:254
ADO.NET之8-数据读取器,DataReader---ShinePans
根据数据提供程序不同,DataReader可分为SqlDataReader,OleDbDataReader,OlbeDataReader和OracleDataReader等4大类 一个巧妙的比喻:如果数据库是水库,那么SqlConnection是进水笼头,SqlCommand是抽水机,SqlDataReader是出水的水管,SqlDataReader每次只能读取一条记录,每当SqlDataRea...
分类:Web程序   时间:2014-08-03 18:05:26    阅读次数:302
ADO.NET之9-非连接模式,内存中的数据库DataSet,DataTable---ShinePans
DataSet被称作数据集,可以比作内存中的数据库,DataSet为ADO.NET核心,...
分类:数据库   时间:2014-08-03 18:02:36    阅读次数:234
机房收费系统(个人版)基础知识——ADO.NET
ado.net是一组用于和数据源进行交互的面向对象类库。通常情况下,数据源是数据库,但ADO.NET的出现使这些数据源拓展到了文本文件、Excel表格或者XML文件。...
分类:Web程序   时间:2014-08-03 12:48:05    阅读次数:256
ADO.NET之4-使用SqlCommand对象向数据库添加记录---ShinePans
源代码: using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SQLTest { c...
分类:数据库   时间:2014-08-02 15:36:33    阅读次数:227
ADO.NET之5-使用Command对象删除记录---ShinePans
源代码: using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SQLTest { c...
分类:Web程序   时间:2014-08-02 15:35:53    阅读次数:185
ADO.NET之6-使用Command修改数据库中的数据---ShinePans
源代码: using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SQLTest { c...
分类:数据库   时间:2014-08-02 15:34:43    阅读次数:210
ADO.NET之7-使用Command对象查找数据库记录---ShinePans
查询数据路里的数据数量: 代码: using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespac...
分类:数据库   时间:2014-08-02 15:33:53    阅读次数:259
DataTable Key Points
The DataTable is a central object in the ADO.NET library. Other objects that use the DataTable include the DataSet and the DataView.When accessing Dat...
分类:其他好文   时间:2014-08-02 15:14:03    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!