Code:
public static Person getDate(string id_person)
{
conn.Close();
if (conn.State == ConnectionState.Closed)
{
conn.Open();
}
Command2.Connection = conn;
Command2.CommandText = "select * from person where id_person='" + id_person + "'";
dr_person = Command2.ExecuteReader();
public static Person getDate(string id_person)
{
conn.Close();
if (conn.State == ConnectionState.Closed)
{
conn.Open();
}
Command2.Connection = conn;
Command2.CommandText = "select * from person where id_person='" + id_person + "'";
dr_person = Command2.ExecuteReader();
