LINQPad Feature Suggestions

More than 100 LINQPad features are a direct result of customer feedback! This is the official forum for posting and voting on ideas – we want to hear from you!

LINQPad Feature Suggestions

Categories

  1. Dynamically skippable tests are nice, but their status isn't reflected in the results. To support XUnit.SkippableFact (NUGET-package):

    Make the following changes in xunit:


    1. function RunTests - add:
      runner.OnTestSkipped = info => AddTestResult(info);


    2. class TestResultSummary - add:
      public bool Skipped() => _testInfo is Xunit.Runners.TestSkippedInfo;


    3. TestResultSummary / public object Status - add:
      _testInfo is Xunit.Runners.TestSkippedInfo ? Util.WithStyle ("Skipped", "color:orange") :


    To test it:

    [SkippableFact]
    void Test_Xunit3()
    {

    Skip.If(true, "skipping");
    
    Assert.True(1 + 1 == 2);

    }

    [SkippableTheory]
    [InlineData(1)]
    [InlineData(2)]
    void Test_Xunit4(int x)
    {

    Skip.If(x==2, "skipping");
    
    Assert.True(1 + 1 == 2);

    }

    Note: Those changes will also work with the plain XUnit. So adding…

    1 vote
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  2. It would be nice to have the Entity Framework 6 driver back in Linqpad 6, since EF6 now also targets netstandard 2.1.

    1 vote
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  3. It would be great to have an option to generate entity framework core's dbcontext and entity classes from tables and views.

    The option can be added on right click on Table(s) or schema. Or by right clicking and selecting the tables/schemas.

    This should generate Db Context class containing DbSets for entity types generated along with mapping in OnModelCreating override.

    The dbcontext and entity classes can generated in single file or multiple files in the linqpad.

    Moreover, almost all the commands in dotnet ef utility can be added e.g. dbcontext scaffold, migrations (add, remove), update database etc.

    These would help increasing…

    1 vote
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →

    1. Open the context menu when a tab is right clicked, even if it is not the current tab.


    2. Have a close tab button (visual studio style X) on each tab.


    1 vote
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  4. Example:
    public AttributeValue(Position start, Position end, string rawValue, /QuoteKind quoteKind,/ bool expression)

    1 vote
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  5. 0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  6. It would be great if the Ctrl+E SSMS shortcut would be enabled as an alternative to F5. It's easier to reach and makes sense (E for Execute).

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  7. Provide more information about thrown exceptions (dump message, stack trace, etc).

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
  8. Since hitting Esc doesn't seem to trigger any other action, it would be useful for those of us with muscle memory to hit it when we accidentally ran something we shouldn't have. Much faster/simpler than the 2-key combo of Shift-F5. :)

    I'm not trying to ask for the larger-scope 'allow remapping keyboard shortcuts', just the Escape key. :)

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  9. The UniversalStaticDriver class does not detect the properties of the customType parameter that are directly of type IEnumerable<T>. If the customType inherits IEnumerable<T> (like say via IList<T>) then the property is detected. But if the property is actually declared as IEnumerable<T> then it is passed over.

    I changed the line that declared ienumerableOfT from:

                let ienumerableOfT = prop.PropertyType.GetInterface (&quot;System.Collections.Generic.IEnumerable`1&quot;)
    
    where ienumerableOfT != null

    to

                let ienumerableOfT = (prop.PropertyType.GetGenericTypeDefinition() == typeof(IEnumerable&lt;&gt;) ? prop.PropertyType : null)
    
    ?? prop.PropertyType.GetInterface(&quot;System.Collections.Generic.IEnumerable`1&quot;)

    Kinda hacky, but it fixed the problem for me. Probably a better solution would be to recurse through the type and all inherited types…

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  10. Line numbers are present in a beta release , but only for new Query windows and not when viewing/editing Stored Procs in a DB.

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  11. If i work o X DB i have lightred, but i i work on Y DB i work on limegreen editor

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  12. Obviously, features new to 1.7 (and later) will not be available as LinqPad seems to reference the 1.1 version. Also, I've been having this issue:

    Assembly 'MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'Microsoft.WindowsAzure.StorageClient, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  13. The menu item for "Copy for Markdown/Stack Overflow" ends up copying code that in most cases won't compile without manual intervention by the person who grabs it off of Stack Overflow.

    Specifically, these two things is on the query options tab, and has to be manually added for the query code to compile and execute:


    • References

    • Using directives

    It would be nice if those two things could be copied alongside the query code, for instance as specially crafted comments at the top, that would be recognized by LINQPad upon pasting back into it, and moved to the appropriate places.

    ie.

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  14. When the code fragment is selected and then F5 is pressed, LINQPad runs only selected code. I think this feature is nice.
    When I choose "C# Program" mode, of course I write some utility codes outside the Main() method.
    However, when I select the fragment of code in the Main() and press F5, the build fails, since the definitions outside the Main() wasn't included as "compile target codes".

    I think that the codes outside Main() method (in C# / VB Program mode) should be always included in compile targets to enable user-defined classes and methods,
    even if the code fragment…

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  15. There are a few assemblies I often use in LinqPad queries, that are not in the GAC or on Nuget. Every time, I have to browse to their location to find them (e.g. Windows.winmd to use WinRT APIs). It would be nice if there was a "recently used" list in the "Additional references" tab

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  16. The debugger in LINQPad 4.5 is awesome, but not as good as Visual Studio's. Before the beta, I was using Debugger.Launch/Break to debug in VS. Now, those launch LINQPad's debugger. Unless and until the debugger is as good as VS's, I would like some kind of button or something (as long as it's faster than using the preferences) to use an external debugger.

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
  17. Linqpad doesn't work very well if the underlying columns in an Oracle database contain TIMESTAMP WITH TIME ZONE columns.

    These appear in the datacontext as DateTime (losing the offset information), however queries using equality checks against them can fail due to the way the underlying IQDriver handles (or otherwise) the conversion back to datetime offset within Oracle.

    It's a bit of a pain, but one of the simple approaches is to ensure the generated SQL wraps those columns in either sysextractutc(theColumn) or 'theColumn AT TIME ZONE xxxx' to ensure they are compared with the DateTime parameter that is…

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  18. I would like to be able to create a "My Extensions"-like file per folder so that I can create contexts or extension code that are shared by all of the queries in that folder.

    0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  19. 0 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?