DAO:
public static Teacher SelectTeacherById(int id)
{
string sql = "select distinct * from Teacher where Id="+id;
return DBHelper.ExecuteEntity<Teacher>(sql, CommandType.Text, null );
}中的DBHelper.ExecuteEntity的调用中出现异常提示“非静态方法需要一个目标”
我用根据id查询Teacher的实体,谢谢,帮我提提建议,急用····