Using Data Access in Web API project

Thread is closed for posting
2 posts, 0 answers
  1. Guy
    Guy avatar
    1 posts
    Member since:
    Jan 2017

    Posted 23 Jan 2017 Link to this post

    When looking at the suggestions by Telerik how to incorporate DataAccess in a Web API project, I see their code example of instantiating a repository object with every invocation of the controller. Has anyone had any problems (like database table locking or similar issues) with this approach when the number of calls made to the Web API is more than a hand full? 
  2. Bernd
    Bernd avatar
    91 posts
    Member since:
    Feb 2013

    Posted 24 Jan 2017 Link to this post

    Hi Guy.

    I never had problems with that. As long as I didn't use async for write operations. That caused some trobule I wasn't able to resolve.

    Using the Context API you can tell DataAccess how to handle concurrency if need be.

    Regards

    Bernd

Back to Top