This is a migrated thread and some comments may be shown as answers.

Update only certain fields

1 Answer 68 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Charlie
Top achievements
Rank 1
Charlie asked on 08 Oct 2010, 09:11 PM
This may be a simple question but  -

Is it possible to update only a couple data field when working with a mapped OEM objects - which is mapped to the whole table ?

For example:  table Customer
generated ORM object will include all fields .. i..e   25.

Well I only want to update 2 fields - or fields that have been changed  - ( the generated store procedure is requiring all fields) - is this possible via the ORM object?  Configuration setting?

Thanks-

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 11 Oct 2010, 02:26 PM
Hello Charlie,
If you have to use stored procedures for update operations OpenAccess can only update all fields. It is far too complicated to provide stored procedures for all combinations of changed fields. If you can avoid using stored procedures our generated SQL will only update the changed values.

Regards,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Getting Started
Asked by
Charlie
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or