コード例 #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));
        }
コード例 #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);
 }