Exemplo n.º 1
0
        public static DataGenerator From(IDatabase database, string sql, object parameters = null)
        {
            var query  = new DatabaseQueryWithCache(database);
            var result = query.Query(sql, parameters);

            return(new DiscreteDataGenerator(result));
        }
Exemplo n.º 2
0
 public static DataGenerator From(IDatabase database, string sql, object parameters = null) {
     var query = new DatabaseQueryWithCache(database);
     var result = query.Query(sql, parameters);
     return new DiscreteDataGenerator(result);
 }