LINQPad.Runtime - how to provide a script without using a filesystem path
Hello,
I am using LINQPad.Runtime NuGet package in ASP.NET Core application. Is there any way to execute a query that is defined as a plain text? I have been able to execute a query from a file:
var query = LINQPad.Util.Run("C://HelloWorld.linq", QueryResultFormat.Html);
But it would be handy if the contents of the .linq file could be provided as a string, without the round-trip to the file system:
var queryAsString = "<Query Kind=\"Program\" /> void Main(){}"; var query = LINQPad.Util.Run(queryAsString, QueryResultFormat.Html);
Is there any helper method to achieve that?
Thank you for your help.