C#向Sqlite数据库添加数据,添加成功了,但数据库没数据!
< 返回列表时间: 2012-12-14来源:开源中国
HDC调试需求开发(15万预算),能者速来!>>>
SQLiteCommand command = new SQLiteCommand();
SQLiteTransaction sltran = null;
try
{
using (SQLiteConnection connection = GetSQLiteConnection())
{
PrepareCommand(command, connection, cmdText, p);
sltran = connection.BeginTransaction();
command.Transaction = sltran;
int count = command.ExecuteNonQuery();
sltran.Commit();
return count;
}
}
catch
{
sltran.Rollback();
throw;
}
热门排行