﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Bee commented on L2S Prof hardships – getting query duration and row counts</title><description>Ayende, can you detail the process a little bit more?
  
In a topic complete away from profiller stuff, I have great interest in such thing
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment10</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment10</guid><pubDate>Wed, 18 Nov 2009 19:37:28 GMT</pubDate></item><item><title>Harry S. commented on L2S Prof hardships – getting query duration and row counts</title><description>Once again, the blogs tagline is *very* apt.
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment9</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment9</guid><pubDate>Tue, 17 Nov 2009 23:45:11 GMT</pubDate></item><item><title>Ayende Rahien commented on L2S Prof hardships – getting query duration and row counts</title><description>Fabian,
  
You can't actually implement internal interfaces using SRE, that is the first thing that I tried, and it doesn't work.
  
What I mean by breaking the type system is creating a type that lies about what it is.
  
When you ask it "are you a Foo", it will say yes, and when you ask it, "are you Bar" (totally unrelated to Foo) it will say yes as well.
  
It is a lying type, basically, and a nasty one that relies on specific usage pattern.
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment8</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment8</guid><pubDate>Tue, 17 Nov 2009 08:08:01 GMT</pubDate></item><item><title>Fabian Schmied commented on L2S Prof hardships – getting query duration and row counts</title><description>Okay, I'll give in and ask the question: What do you mean by you "had to break the CLR type system to get this to work"?
  
  
I'd guess you could do a few things by using transparent proxies and injecting them via reflection, but I wouldn't consider this as a breaking of the type system.
  
  
You could also use Reflection.Emit to implement some internal interfaces (hoping that the accessibility flags won't be verified at runtime, of which I'm not sure). This actually is cheating the type system (if it works), but I'm not sure whether this is what you did.
  
  
So what's behind that ominous phrase? :)
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment7</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment7</guid><pubDate>Tue, 17 Nov 2009 08:03:30 GMT</pubDate></item><item><title>tobi commented on L2S Prof hardships – getting query duration and row counts</title><description>@"Chris Smith": There is a reason the stuff ayende changed using reflection is private. Imagine everything would be public: People would rely on internals all the time. The .net framework code would be unchangeable in even the simplest detail.
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment6</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment6</guid><pubDate>Tue, 17 Nov 2009 01:01:40 GMT</pubDate></item><item><title>Chris Smith commented on L2S Prof hardships – getting query duration and row counts</title><description>Another reason B&amp;D languages should go away!  It makes it hard for you to get to the good stuff (and change it).
  
  
Bring on C# 6... which will resemble python with a C syntax.
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment5</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment5</guid><pubDate>Mon, 16 Nov 2009 18:35:34 GMT</pubDate></item><item><title>Dan L commented on L2S Prof hardships – getting query duration and row counts</title><description>That's hilarious.  In my experience with L2S, coercive hook ins have become a somewhat typical necessity.
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment4</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment4</guid><pubDate>Mon, 16 Nov 2009 17:20:59 GMT</pubDate></item><item><title>Ayende Rahien commented on L2S Prof hardships – getting query duration and row counts</title><description>Imran,
  
That is probably too expensive to do on tool that emphasis low footprint on the profiled app
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment3</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment3</guid><pubDate>Mon, 16 Nov 2009 15:01:11 GMT</pubDate></item><item><title>Imran commented on L2S Prof hardships – getting query duration and row counts</title><description>Wonder if there is anyway to hook in to the client statistics that are generated when queries are run (e.g. the stats the management studio shows when you turn on the 'include client statistics' option).
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment2</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment2</guid><pubDate>Mon, 16 Nov 2009 12:42:19 GMT</pubDate></item><item><title>dan commented on L2S Prof hardships – getting query duration and row counts</title><description>ha! best post ever!
</description><link>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment1</link><guid>http://ayende.com/4294/l2s-prof-hardships-getting-query-duration-and-row-counts#comment1</guid><pubDate>Mon, 16 Nov 2009 10:44:34 GMT</pubDate></item></channel></rss>