This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
TextWriter tw = new StringWriter(); | |
Log = tw; | |
Users.Where(e => ...).ToArray(); | |
tw.ToString().TransformSql().Dump(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var configuration = new HostConfiguration() { UrlReservations = new UrlReservations() { CreateAutomatically = true } }; | |
using (var host = new Nancy.Hosting.Self.NancyHost(new Uri("http://localhost:8090"), new LinqpadNancyBootstrapper(), configuration)) | |
{ | |
host.Start(); | |
Console.ReadLine(); | |
} | |
} |