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

Data Access duplicate the record when I try to update.

2 Answers 50 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Federico
Top achievements
Rank 1
Federico asked on 17 Jun 2014, 11:00 PM
The story goes like that.
I follow the "best practices" in the documentation about manage the context.
In my app I get a list of 10 records, the I show those record in a gridview and store the records that I get from the database in the Session for later use.
The user then select a couple of records in the gridview and press a button, the button click fired a couple of update in the selected record, then I call my service layer and send the list of selected record for update. In the service layer I do the update but DA is doing a insert.
I try everything, I look up in the documentation, but nothing.
Could please anyone drop me a couple of line pointing me in the right direction.
Thank you.

2 Answers, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 18 Jun 2014, 01:35 PM
Hello Federico,

In general, you can find both code examples and implementation tutorials for N-tier development with service layers in our Telerik Data Access Samples Kit. Samples Kit is an offline resource browser with more than 50 samples in C# and VB that demonstrate the Telerik Data Access functionalities in combination with a variety of .NET technologies. I would recommend to you to check the following sections:
- N-Tier Development
- WCF

Regarding the behavior you experience, I am unable to completely understand the situation on your side, and it would be very helpful if you could provide us with the following information:
1. What is the structure of the application?
2. What technologies do you utilize?
3. What kind of service do you use (Plain Service, Data Service, WebAPI)?
4. In the service layer, is the service generated with Services Wizard?
5. Which approach for handling the context you use?
6. Can you paste code snippet with the code that does not prove you with the necessary result?

I am looking forward to your feedback.



Regards,
Doroteya
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
0
shail
Top achievements
Rank 1
answered on 15 Jul 2014, 04:45 AM
Only authorized users are granted access to information systems, and users are limited to specific defined, documented and approved applications and levels of access rights. Computer and communication system access control is to be achieved that are unique to each individual user to provide individual accountability.
Tags
Data Access Free Edition
Asked by
Federico
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
shail
Top achievements
Rank 1
Share this question
or