Example #1
0
        public void PullsThingsDynamically()
        {
            var list    = new PGStore <dynamic>(_connectionStringName);
            var results = list.Query(@"select artist.name AS artist_name, track.name, track.unit_price 
                                   from artist inner join 
                                   album on artist.artist_id = album.artist_id inner join
                                   track on album.album_id = track.album_id
                                   where (artist.name = @0)", "AC/DC");

            Assert.True(results.Count() > 0);
        }
Example #2
0
 public void PullsThingsDynamically()
 {
     var list = new PGStore<dynamic>(_connectionStringName);
       var results = list.Query(@"select artist.name AS artist_name, track.name, track.unit_price
                            from artist inner join
                            album on artist.artist_id = album.artist_id inner join
                            track on album.album_id = track.album_id
                            where (artist.name = @0)", "AC/DC");
       Assert.True(results.Count() > 0);
 }