Overriding SqlQueryProvider.Executor

Feb 13, 2010 at 8:01 PM

Hi Matt

Thank you so much for IQToolkit! This is a programming school and a really useful tool. I think my current project just wouldn't have LINQ if it wasn't for you.

 

I was overriding SqlQueryProvider.Convert of older version because I have custom types (Date and TimeOfDay in case you were wondering - I know it is the dumbest thing on earth but there are some other constraints involved...)

Anyway, with the new setup I had to override CreateExecutor() to return my custom type, inheriting from SqlQueryProvider.Executor It took me some time to realize that I was in fact inheriting DbEntityProvider.Executor as SqlQueryProvider.Executor is  private... It gave me some complaints about a command having more than one open Reader associated with it.

Thanks again,

Asher