We have implemented Attach-Detach API
that may suit your needs a few releases ago.
If you are using the latest version you should be able to try it and see if it fix your specific scenario.
In short this API allows you to change the OpenAccessContext
instance that is managing a persistent entity.
Another way to use the API is to just attach either a new or existing entity instance and let Telerik Data Access
decide if there is need for Insert
statement to persist the data. Please note that there can be executed an internal SELECT
query to check if the object exists and what are the value of it's attributes in the database in order to determine it's state.
If you are looking for an feature that does not do automatic SELECT
statement, I am afraid that you will not find this API suitable.
For more information and code snippets you can read the Attaching and Detaching Objects
section in our online documentation.
If you need any further assistance do not hesitate to contact us with your questions.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map