Questions tagged [linqpad5]

6 questions
7
votes
1 answer

How to provide Console input to when running Linqpad?

Within LinqPad I can use things like Console.ReadKey(); OR Util.ReadLine(); But how do you run these in such a way you can actually enter the input? The UI doesn't have a console window!
Choco
  • 1,189
  • 1
  • 14
  • 29
2
votes
1 answer

How to use snippet for remark method in linqpad?

e.g,in visual studio i can type /// on top of method then system will generate /// /// /// /// /// But it's not work for LINQPad. How to…
Wei Lin
  • 3,591
  • 2
  • 20
  • 52
1
vote
1 answer

LinqPad 5: returning a default value from an async ReadLine if no user input after a set time

UPDATE: In LinqPad 5 (five), is there any way to have a timed Util.ReadLine, that will allow me to wait for user input for X seconds, then return the default value? Here's the synchronous code: double mins = 0.0; var input = Util.ReadLine("Timeout…
TechSpud
  • 3,418
  • 1
  • 27
  • 35
1
vote
0 answers

setting up a postgres server connection is not working in linqpad 5

I am new to using linqpad 5. I am working with Postgres databases. I wanted to set up a connection in linqpad but there is no driver to connect for Postgres, so I added linqpad-PostgreSQL-driver:…
dhiraj
  • 11
  • 1
1
vote
1 answer

Occasional OutOfMemoryException on Bitmap Processing Over The Network

I'm running the following code in LinqPad 5: var client = new MongoClient(@"mongodb://192.168.0.108:27017"); var db = client.GetDatabase("Stfc"); var fitCollection = db.GetCollection("RecentFits"); var fits =…
Ian Newson
  • 7,679
  • 2
  • 47
  • 80
0
votes
0 answers

Using NOLOCK with LinqPad

I'm using linqPad 5 and I wanted to make my query with NOLOCK I know it can be done normally with linq to sql using: new TransactionScope( TransactionScopeOption.Required, new TransactionOptions { …
sgch
  • 77
  • 1
  • 7