Thursday, February 28, 2013

Today's LINQPad fun, SelectExcept! (a tip on selecting all the fields, except...)

Managing My Technical Mess - Use SelectExcept When You Are Too Lazy To Type

"Do you love LINQPad?  Use it every day?  Do ad-hoc queries non-stop against your DataContexts?  Love C#/LINQ’s ability for anonymous object projections into new forms?  I’m assuming you said yes to all those.  Here is the question that drives this post…do you hate having to type *every* field *except* one (or a few) when you *only* need almost all fields?  If you answered yes to that last question or are wondering why I don’t just allow the entire row to be selected/returned, continue reading…




A cool, with source, example of leveraging LINQPad and making it conform to your WILL!!! MUAHAHAHA... Oh... sorry... Been that kind of week... :)

No comments: