SqlCommand command = new SqlCommand();
command.Connection = connection;
command.CommandText = string.Format("select * from EmployeeType where id='Hierachy Update'", Id);
SqlDataReader dataReader = command.ExecuteReader();
if (dataReader.Read())
{
Employee = new EmployeeType();
Employee.Id = Convert.ToInt64(dataReader["Id"]);
Employee.Type = Convert.ToString(dataReader["Type"]);
}
command.Connection = connection;
command.CommandText = string.Format("select * from EmployeeType where id='Hierachy Update'", Id);
SqlDataReader dataReader = command.ExecuteReader();
if (dataReader.Read())
{
Employee = new EmployeeType();
Employee.Id = Convert.ToInt64(dataReader["Id"]);
Employee.Type = Convert.ToString(dataReader["Type"]);
}