I
itinsley
Hello
I have begrudgingly decided to use Strongly Typed Datasets but hate the
code that is generated by dragging and dropping ADO.Net controls and
using Configure Data Adapter and letting the 'Wizard' build my SQL, for
the following reasons:
* I don't want to drag/drop a Connection object on every
page/component, i want to handle connections my own way
* The Stored Procs it creates are practically unreadable
* The table mappings it creates ARE unreadable
* It is difficult to amend this code without using the Wizards - this
messes with your Source code and makes diff comparisons very difficult.
Can anyone recommend a way of populating Strongly Typed Datasets using
straightforward SQL and readable code without 6 levels of nested
mapping code about 400 characters wide. I can always create my own code
generators to create the SQL once i have a model to use.
The main requirements (which the 'wizard' handles for me) are:
* recognising update collisions from multiple users
* handling Identity columns and relationships
Any pointers greatly appreciated.
Ian
I have begrudgingly decided to use Strongly Typed Datasets but hate the
code that is generated by dragging and dropping ADO.Net controls and
using Configure Data Adapter and letting the 'Wizard' build my SQL, for
the following reasons:
* I don't want to drag/drop a Connection object on every
page/component, i want to handle connections my own way
* The Stored Procs it creates are practically unreadable
* The table mappings it creates ARE unreadable
* It is difficult to amend this code without using the Wizards - this
messes with your Source code and makes diff comparisons very difficult.
Can anyone recommend a way of populating Strongly Typed Datasets using
straightforward SQL and readable code without 6 levels of nested
mapping code about 400 characters wide. I can always create my own code
generators to create the SQL once i have a model to use.
The main requirements (which the 'wizard' handles for me) are:
* recognising update collisions from multiple users
* handling Identity columns and relationships
Any pointers greatly appreciated.
Ian