Please add XXX.OrderByDescending( x => ....).Take(10) to the right click pop up menu
Hi Joe, Would you consider to just add
TableObjects.OrderByDescending( x=> ...).Take(10)
in the pop up menu when right click on Table Object?
Many times when I open LINQPad I need to investigate the latest logged items.
TableObjects.OrderByDescending( x=> ...).Take(10)
in the pop up menu when right click on Table Object?
Many times when I open LINQPad I need to investigate the latest logged items.
Comments
In the meantime, you could write the following snippet. Save it to My Documents\LINQPad Snippets\od.snippet (where "od" is the desired shortcut). Then press od TAB and it will bring up a list of tables to choose from. Change Coooode to Code (the forum doesn't let me use Code as a tag for obvious reasons).
Would that work for you?
Where can I find documentation on how to create my own snippets (like you have done above)?
When I run a query against my company's production database, the corporate requirement is to include the nolock hint. So, I want a snippet that will paste the following (C# statement) into the query window:
using (var txn = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions
{
IsolationLevel = IsolationLevel.ReadUncommitted
}
))
{
}
I realize that you may reply with the snippet for me (as you did above), but I'm hoping that there is some documentation so I can do others.
http://msdn.microsoft.com/en-us/library/ms165392(v=vs.80).aspx
There are also third-party tools to help create snippets.