我有以下表格,如果以下任何条目不正确,我想给用户提醒。在哪里可以在代码下方添加我的异常?
我的代码:
public static void GetTables(Members src)
{
OracleConnection conn1 = MyConnectionClass.GetConnection(src.DB, src.ID, src.Password);
conn1.Open();
using (OracleCommand command= new OracleCommand("SELECT * FORM DBA_USERS WHERE USER NAME=" + src.ID + " and PASSWORD=" + src.Password + "", conn1))
{
using (OracleDataReader reader = command.ExecuteReader())
{
int count = 0;
while (reader.Read())
{
count = count + 1;
}
}
}
}