Пример #1
0
        public static DataTable Listar(string Campos, string FiltroWhere, string OrderBy)
        {
            ConexionDb Conexion = new ConexionDb();

            return(Conexion.getData("SELECT " + Campos + " FROM Size WHERE " + FiltroWhere + " Order By " + OrderBy));
        }
        public static DataTable Listar(string Campos, string FiltroWhere)
        {
            ConexionDb Conexion = new ConexionDb();

            return(Conexion.getData("SELECT " + Campos + " FROM Usuarios WHERE " + FiltroWhere));
        }
        public static DataTable Listar(string Campos, string FiltroWhere, string OrderBy)
        {
            ConexionDb Conexion = new ConexionDb();

            return(Conexion.getData("SELECT " + Campos + " FROM Calzados c INNER JOIN Marca m ON c.IdMarca = m.IdMarca  WHERE " + FiltroWhere + " Order By " + OrderBy));
        }
 public DataTable CargarTodos()
 {
     return(Conexion.getData("SELECT * FROM Calzados WHERE esNulo = 0 ORDER BY IdCalzado DESC "));
 }
Пример #5
0
 public DataTable CargarTodos()
 {
     return(Conexion.getData("SELECT *, co.Descripcion as Color, m.Descripcion as Marca FROM CalzadoDetalle d INNER JOIN Calzados c ON c.IdCalzado = d.IdCalzado INNER JOIN Marca m ON c.IdMarca = m.IdMarca INNER JOIN Color co ON co.IdColor = d.IdColor WHERE c.esNulo = 0 ORDER BY IdCalzadoDetalle DESC "));
 }
        public static DataTable Listar(string Campos, string FiltroWhere, string OrderBy)
        {
            ConexionDb Conexion = new ConexionDb();

            return(Conexion.getData("SELECT DISTINCT " + Campos + " FROM CarritoCompra c INNER JOIN CalzadoDetalle d ON d.IdCalzadoDetalle = c.IdCalzado INNER JOIN Color co ON co.IdColor = d.IdColor INNER JOIN Clasificacion cl ON cl.IdClasificacion = d.IdClasificacion WHERE " + FiltroWhere + " Order By " + OrderBy));
        }