Questions tagged [linqpad7]

12 questions
4
votes
1 answer

Is it possible to add cs file references in LinqPad?

I know I can add assemblies to LinqPad and I know I can paste in classes in queris, but is it possible to add CSharp class files(cs) and reference these in a query window? I tried to a few classes but could not access them even if I included the…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
2
votes
1 answer

Calling LinqPad 7 from Visual Studio C# Project

I am trying to call LinqPad query from C#. Unfortunately, the code below does not work; the result is null as if nothing got returned by the script. I don't see any example of how to do this online. Any direction would be appreciated. This is the…
Ivan
  • 7,448
  • 14
  • 69
  • 134
1
vote
1 answer

Getting a 'Use of unassigned local variable'in list pattern with variable with .NET 7

I have tested out list patterns in .NET 7 and C#. I am using Linqpad 7 and .NET 7.0.1. List patterns are useful I guess to compared sequences and fun to test out. The '_' discard here means to ignore the number at a given position and the '..' range…
Tore Aurstad
  • 3,189
  • 1
  • 27
  • 22
1
vote
1 answer

What can I do with the LINQPad.Runtime?

Just learning about LINQPad and I am trying to do understand what I can do with the LINQPad.Runtime NuGet package. Where can I find the docs for this? Also, is this package the right one for NET6?
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
1
vote
1 answer

Linqpad keyboard-shortcuts for cycling through the result panels

I am looking for the keyboard-shortcuts for cycling through the result panels. I have plenty of queries that dump intermediate results into different datagrids. I would like to have a keyboard shortcut for cycling though the various result…
souplex
  • 981
  • 6
  • 16
0
votes
0 answers

How to resolve fully qualified namespace conflict between DLLs in LINQPad?

In my LINQPad script I need to use System.Windows.Forms.DataVisualization.Charting.Chart to create some graphs - the following code works fine for this purpose. void Main() { List a = new List() { 1, 2, 3, 4, 5 }; var winChart =…
0
votes
0 answers

.Net ORA-12537: Network Session: End of file

I am getting this error trying to connect to an oracle db. I can connect on the command line using SQLplus from the command prompt or powershell. So I know that this machine can talk to the database. But something is not right on the .Net…
Daniel Williams
  • 8,912
  • 15
  • 68
  • 107
0
votes
1 answer

Linq Match Sets

I am working on a Linq query that essentially matches Set 1 against Set 2 for matching records. Set 1: List openIntras = new List() { new IntraAccountModel() { InAccountID = "JKB1", …
hiFI
  • 1,887
  • 3
  • 28
  • 57
0
votes
1 answer

Unknown column in' where clause'- Converting MySQL query to LINQ

I am trying to convert MySQL query to LINQ using LINQPad MySQL Query Select m.Id from monthly as m left join party as p on p.Id = m.PartyId left join partymap as sp on sp.PositionId = m.PositionId and p.Id = sp.PartyId LINQ Query ( from m in…
Microsoft DN
  • 9,706
  • 10
  • 51
  • 71
0
votes
1 answer

Linqpad checkbox update an instance problem

I want to let the user check a list of checkboxes, and after that when clicking a button act on what was checked. I defined an event for each check box, when its check is changed, the instance for which it was created will be updated: void Main() { …
dovid
  • 6,354
  • 3
  • 33
  • 73
0
votes
1 answer

How to login in the database of entity framework context

I'm trying to connect to my context in my VS solution with EF Core But when I test the connection I get this error Because it is trying to connect with my domain user instead the user in the connection string Any idea, please? Thanks
kintela
  • 1,283
  • 1
  • 14
  • 32
0
votes
1 answer

Static Hangfire RecurringJob methods in LINQPad are not behaving

I have a script in LINQPad that looks like this: var serverMode = EnvironmentType.EWPROD; var jobToSchedule = JobType.ABC; var hangfireCs = GetConnectionString(serverMode); JobStorage.Current = new SqlServerStorage(hangfireCs); Action
Terry
  • 2,148
  • 2
  • 32
  • 53