Ejemplo n.º 1
0
        public static QuerryResult Get(string selectText)
        {
            //IDbConnection dbConnection = App.Instance.DBConnection;
            //IDbCommand dbCommand = dbConnection.CreateCommand ();
            //dbCommand.CommandText = selectText;

            QuerryResult queryResult = new QuerryResult();
            queryResult.Columnas = new string[] { "Columna 1", "Columna 2" };
            List<IList> rows = new List<IList> ();
            rows.Add (new object[] { 1, "art. uno" });
            rows.Add (new object[] { 2, "art. dos" });

            queryResult.Rows = rows;

            return queryResult;
        }
Ejemplo n.º 2
0
        public static QuerryResult Get(string selectText)
        {
            //IDbConnection dbConnection = App.Instance.DBConnection;
            //IDbCommand dbCommand = dbConnection.CreateCommand ();
            //dbCommand.CommandText = selectText;

            QuerryResult queryResult = new QuerryResult();

            queryResult.Columnas = new string[] { "Columna 1", "Columna 2" };
            List <IList> rows = new List <IList> ();

            rows.Add(new object[] { 1, "art. uno" });
            rows.Add(new object[] { 2, "art. dos" });

            queryResult.Rows = rows;

            return(queryResult);
        }