SQLiteHelper

from:http://www.eggheadcafe.com/articles/20050315.asp

And here is a Quasi "help document" in the NDoc LinearHTML format:

public class SQLiteHelper

SQLiteHelper is a utility class similar to "SQLHelper" in MS Data Access Application Block and follows similar pattern.

Method Members
NameAccessSummary
AssignParameterValues() : VoidprotectedThis method assigns dataRow column values to an array of IDataParameters
AssignParameterValues() : VoidprotectedThis method assigns an array of values to an array of IDataParameters
AssignParameterValues() : VoidfamilyOrAssemblyThis method assigns dataRow column values to an IDataParameterCollection
CreateCommand() : SQLiteCommandpublicCreates the command.
CreateCommand() : SQLiteCommandpublicCreates the command.
CreateParameter() : SQLiteParameterpublicCreates the parameter.
DeriveParameters() : SQLiteParameterCollectionpublicParses parameter names from SQL Statement, assigns values from object array , and returns fully populated ParameterCollection
ExecuteDataset() : DataSetpublicExecutes the dataset from a populated Command object.
ExecuteDataSet() : DataSetpublicShortcut method to execute dataset from SQL Statement and object[] arrray of /// parameter values
ExecuteDataset() : DataSetpublicExecutes the dataset in a SQLite Transaction
ExecuteDataset() : DataSetpublicExecutes the dataset with Transaction and object array of parameter values.
ExecuteDataSet() : DataSetpublicShortcut method to execute dataset from SQL Statement and object[] arrray of parameter values
ExecuteNonQuery() : Int32public
ExecuteNonQuery() : Int32publicExecutes non-query sql Statment with Transaction
ExecuteNonQuery() : Int32publicExecutes the non query.
ExecuteNonQuery() : Int32publicShortcut to ExecuteNonQuery with SqlStatement and object[] param values
ExecuteNonQueryTypedParams() : Int32publicExecutes non query typed params from a DataRow
ExecuteReader() : IDataReaderpublicShortCut method to return IDataReader NOTE: You should explicitly close the Command.connection you passed in as well as call Dispose on the Command after reader is closed. We do this because IDataReader has no underlying Connection Property.
ExecuteScalar() : ObjectpublicShortcut to ExecuteScalar with Sql Statement embedded params and object[] param values
ExecuteXmlReader() : XmlReaderpublicExecute XmlReader with complete Command
UpdateDataset() : VoidpublicExecutes the respective command for each inserted, updated, or deleted row in the DataSet.

To use this, download the SQLiteHelper.cs class and the CHM documentation in the zip file below, and ADD the SQLiteHelper.cs class file to the ADO.NET provider source code project, and rebuild it. Done! Now you have SQLite.Net ADO.NET provider with a familiar, built-in SQLiteHelper class should you need it. Feel free to improve if you are so inclined.

N.B. I just checked the sourceforge.net site and it looks like Robert fixed a bug in the Command class. So I've gotten the new source and compiled a release build of SQLite.NET.dll as of 3/17/2005. It includes my SQLiteHelper class and is in the zip file below.

 

Download the source code that accompanies this article

转载于:https://www.cnblogs.com/luoyaoquan/archive/2011/06/15/2081651.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值