Data Base/SQLite
SQLite Connection C#
Rusi(루시)
2011. 9. 7. 11:26
public SQLiteCommand DBConnection()
{
SQLiteConnection connection = new SQLiteConnection("Data Source=test.db(DB파일경로와 파일명)");
SQLiteCommand command;
try
{
connection.Open();
command = connection.CreateCommand();
}
catch
{
command = null;
}
finally
{
command = null;
connection.Close();
}
return command;
}