示例#1
0
        public static DataTable BuscarPersona(int buscar)
        {
            SqlCommand _comando = MetodosDatosPersona.CrearComando();

            _comando.CommandText = "SELECT * FROM Persona where rut = " + buscar + "";
            return(MetodosDatosPersona.EjecutarComandoSelect(_comando));
        }
示例#2
0
        public static DataTable ObtenerPersonas()
        {
            SqlCommand _comando = MetodosDatosPersona.CrearComando();

            _comando.CommandText = "SELECT * FROM Persona";
            return(MetodosDatosPersona.EjecutarComandoSelect(_comando));
        }