public void BeerSampleContext_Tests() { var db = new BeerSample(); var beers = from b in db.Beers select b; var beer = beers.Take(1); Assert.IsNotNull(beer); }
public void BeerSampleContext_Tests() { var db = new BeerSample(); var beers = from b in db.Beers select b; foreach (var beer in beers) { Console.WriteLine(beer.Name); } }
public void InheritedContext_AppliesDocumentFilters() { var db = new BeerSample(); var query = from beer in db.Beers select beer; foreach (var beer in query.Skip(5).Take(1)) { Assert.Greater(beer.Abv, 0); Console.WriteLine(beer.Abv); } }
public void BeerSample_Tests() { var db = new BeerSample(); var query = from beer in db.Beers join brewery in db.Breweries on beer.BreweryId equals N1QlFunctions.Key(brewery) select new { beer.Name, beer.Abv, BreweryName = brewery.Name }; foreach (var beer in query.Take(1)) { Console.WriteLine(beer.Name); } }
public void BeerSample_Tests() { var db = new BeerSample(); var query = from beer in db.Beers join brewery in db.Breweries on beer.BreweryId equals N1QlFunctions.Key(brewery) select new { beer.Name, beer.Abv, BreweryName = brewery.Name }; foreach (var beer in query) { Console.WriteLine(beer.Name); } }