示例#1
0
        public DataTable BuscarUsuarioTodo()
        {
            metodo_datos method = new metodo_datos();
            DataTable    table;
            SqlCommand   sql_command;

            sql_command = method.GetCommand();
            // asd


            sql_command.CommandText = "SELECT * FROM Persona";


            table = method.ExecSearch(sql_command);
            return(table);
        }
示例#2
0
        public DataTable BuscarUsuario(string Correo)
        {
            metodo_datos method = new metodo_datos();
            DataTable    table;
            SqlCommand   sql_command;

            sql_command = method.GetCommand();

            sql_command.Parameters.Add("@Correo", SqlDbType.NVarChar);
            sql_command.CommandText         = "SELECT * FROM Persona WHERE Correo = @Correo ";
            sql_command.Parameters[0].Value = Correo;


            table = method.ExecSearch(sql_command);
            return(table);
        }