G
Guest
Hi,
With VS 2005/NET 2.0, I add a datasource in my project, and the Dataset
Designer creates automaticaly the SELECT, INSERT, UPDATE and DELETE
functions/clauses.
BUT the UPDATE include all the fields of the table, included some read-only
or calculated fields. And thus, obviously, any attempt to update FAILS!!!
1 - Does anybody know a way to inform the Designer that some fields are RO,
so that it won't include them in the UPDATE statement? I precise that I need
to get those fields in the SELECT, so I can't simply delete them from the
Designer...
2 - If I have to make a customization of the code to bypass the default
UPDATE clause and functions, can anybody give me a hand on how to do this?
3 - Any other idea to solve this, or any workaroud?
Thanks to you all, guys.
Pascal
With VS 2005/NET 2.0, I add a datasource in my project, and the Dataset
Designer creates automaticaly the SELECT, INSERT, UPDATE and DELETE
functions/clauses.
BUT the UPDATE include all the fields of the table, included some read-only
or calculated fields. And thus, obviously, any attempt to update FAILS!!!
1 - Does anybody know a way to inform the Designer that some fields are RO,
so that it won't include them in the UPDATE statement? I precise that I need
to get those fields in the SELECT, so I can't simply delete them from the
Designer...
2 - If I have to make a customization of the code to bypass the default
UPDATE clause and functions, can anybody give me a hand on how to do this?
3 - Any other idea to solve this, or any workaroud?
Thanks to you all, guys.
Pascal