Data Access duplicate the record when I try to update.

Thread is closed for posting
3 posts, 0 answers
  1. Federico
    Federico avatar
    1 posts
    Member since:
    May 2014

    Posted 17 Jun 2014 Link to this post

    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. Doroteya
    Doroteya avatar
    498 posts

    Posted 18 Jun 2014 Link to this post

    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.

    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
  3. shail
    shail avatar
    3 posts
    Member since:
    Jul 2014

    Posted 14 Jul 2014 Link to this post

    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.
Back to Top