-2
if (!(string.IsNullOrWhiteSpace(eveTable)))
{
try
{
sqLite.Open();
Query = "CREATE TABLE '" + eveTable + "'(EID TEXT PRIMARY KEY, Name TEXT, RollNo TEXT, University TEXT, College TEXT, Course TEXT, Semester TEXT, Section TEXT, Prize TEXT);";
SQLiteCommand createCommand = new SQLiteCommand(Query, sqLite);
createCommand.ExecuteNonQuery();
MessageBox.Show("Event Creation Success!");
}
catch (Exception exception)
{
MessageBox.Show(exception.Message);
}
finally
{
EventsDB ev = new EventsDB();
sqLite.Close();
this.Hide();
ev.Show();
}
}
else
{
MessageBox.Show("White space not allowed");
}
私はSystem.Data.Sqliteを使用しています。 ADO.net dllを参照するクラス – DesmondANIMUS