Skip to main content

Timeline for SQL call for a scalar

Current License: CC BY-SA 3.0

3 events
when toggle format what by license comment
Aug 14, 2014 at 19:49 comment added svick @KonradViltersten I guess you could write an extension method like OpenAndReturn() and then use using (Connection.OpenAndReturn()), but I don't think that would be a good idea.
Aug 14, 2014 at 19:45 comment added Konrad Viltersten Is there a way to open the sucker inside the using head? It'd be great if I had only one statement to follow the innermost using. I'd skip the brackets, then, hehe. +1 for the first using and how simple that is. Never thought of not declaring the object inside there. However, I'm gravely aversed to var so I'll keep that. The cast is always to String, luckily. And I'll make it generic otherwise.
Aug 14, 2014 at 19:42 history answered svick CC BY-SA 3.0