D
David
Hi all,
I am still new to Linq and rapidly making progress.
I need to be able to work with a DB table without knowing beforehand (at the
app development stage) what the table name is (or even the DB). I need it to
be quite generic.
So, I can get the connectionstring, dbname, table name from a config file.
Once I have that, I can then use sql commands to get the field names (or
even use some other methods of getting the field names).
But, from what I have learned with linq so far, I need a DBML file. As I
understand, this describes the table.
Is there anyway that I can use linq on the fly to work with the table, or
will I be best reverting back to standard SQL to manage this?
Any pointers to websites or sample code on working with linq on tables that
I don't neccesarily yet know the details of (except for its dbname, name and
connstring) would be very much appreciated.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I am still new to Linq and rapidly making progress.
I need to be able to work with a DB table without knowing beforehand (at the
app development stage) what the table name is (or even the DB). I need it to
be quite generic.
So, I can get the connectionstring, dbname, table name from a config file.
Once I have that, I can then use sql commands to get the field names (or
even use some other methods of getting the field names).
But, from what I have learned with linq so far, I need a DBML file. As I
understand, this describes the table.
Is there anyway that I can use linq on the fly to work with the table, or
will I be best reverting back to standard SQL to manage this?
Any pointers to websites or sample code on working with linq on tables that
I don't neccesarily yet know the details of (except for its dbname, name and
connstring) would be very much appreciated.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available