Re: creating ExecuteQuery method
- From: "Marc Gravell" <marc.gravell@xxxxxxxxx>
- Date: Thu, 20 Mar 2008 14:50:53 -0000
Can I commit your sample in DbLinq source code as ExecuteQueryIf you like...
implementation
I modified it to work with any ADO .NET provider.And (ahem) took full credit I notice (except for HyperDescriptor, fair
enough)
In DLinq (i.e database) applications reflection speed seems to beFine; then don't use the extra stuff (which you haven't); that is why I like
unimportant.
this implementation - it is trivial to connect/disconnect it ;-p
Will the patch attached to link above look OK ?Hard to tell without a working test rig; looks reasonable though...
How to modify this code so that if poperty returned by query does notThis takes me back to some conversations (with you) in October? November?
exist in type, it will be added to created entity for data binding in
DataGridView
You can weite runtime-extensible objects using TypeDescriptionProvider etc
without too much heartache, but you need somewhere to put the data...
ideally inside the record object so that it gets collected (GC) with the
record.
You could do something like this with a common base class for extensible
objects, but it isn't trivial.
Or is it better to use MS Dynamic Linq library to create new object fromI guess this would be possible - but you'd have to pass this in as the <T>,
scratch in this case ?
so you would have to use reflection to invoke the method. In this case,
personally I'd recommend getting the columns right, or using something
pre-rolled like DataTable.
Marc
.
- Follow-Ups:
- Re: creating ExecuteQuery method
- From: Andrus
- Re: creating ExecuteQuery method
- References:
- creating ExecuteQuery method
- From: Andrus
- Re: creating ExecuteQuery method
- From: Marc Gravell
- Re: creating ExecuteQuery method
- From: Marc Gravell
- Re: creating ExecuteQuery method
- From: Andrus
- creating ExecuteQuery method
- Prev by Date: Re: How to delete an event handler
- Next by Date: Web app crashes when using MediaPlayer object
- Previous by thread: Re: creating ExecuteQuery method
- Next by thread: Re: creating ExecuteQuery method
- Index(es):
Relevant Pages
|
Loading