修改
This commit is contained in:
@@ -28,7 +28,7 @@ namespace LeadDataBaseUtility
|
||||
public static int ExecuteSql(string sql)
|
||||
{
|
||||
int affectedRows = 0;
|
||||
#if !DEBUG
|
||||
#if RELEASE
|
||||
try
|
||||
{
|
||||
#endif
|
||||
@@ -42,7 +42,7 @@ namespace LeadDataBaseUtility
|
||||
}
|
||||
conn.Close();
|
||||
}
|
||||
#if !DEBUG
|
||||
#if RELEASE
|
||||
}
|
||||
|
||||
catch (Exception e)
|
||||
@@ -62,7 +62,7 @@ namespace LeadDataBaseUtility
|
||||
using (SQLiteConnection connection = new SQLiteConnection(connectionString))
|
||||
{
|
||||
DataSet ds = new DataSet();
|
||||
#if !DEBUG
|
||||
#if RELEASE
|
||||
try
|
||||
{
|
||||
#endif
|
||||
@@ -70,7 +70,7 @@ namespace LeadDataBaseUtility
|
||||
SQLiteDataAdapter command = new SQLiteDataAdapter(SQLString, connection);
|
||||
command.Fill(ds, "ds");
|
||||
connection.Close();
|
||||
#if !DEBUG
|
||||
#if RELEASE
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -91,7 +91,7 @@ namespace LeadDataBaseUtility
|
||||
{
|
||||
using (SQLiteCommand cmd = new SQLiteCommand(SQLString, connection))
|
||||
{
|
||||
#if !DEBUG
|
||||
#if RELEASE
|
||||
try
|
||||
{
|
||||
#endif
|
||||
@@ -107,7 +107,7 @@ namespace LeadDataBaseUtility
|
||||
connection.Close();
|
||||
return obj;
|
||||
}
|
||||
#if !DEBUG
|
||||
#if RELEASE
|
||||
}
|
||||
catch (System.Data.SQLite.SQLiteException e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user