Base solution for your next web application
Open Closed

EF Optismitic Concurrncy Handling #3102


User avatar
0
tteoh created

Hi support,

There was a feature request in github on the above: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/50">https://github.com/aspnetboilerplate/as ... /issues/50</a>

Would like to confirm this is still not implemented ABP framework?

Is there a plan to do so?

I m trying to disgest the opinions expressed but as I am still new to Abp and EF, appreciate a more descriptive advice and guidance to implement it using asp.net zero template (MVC+AJS).

The use case is to generate an Order Number during order creation with prefix. I.e. ORD0003

Thanks /tommy


5 Answer(s)
  • User Avatar
    0
    tteoh created

    Dear Support,

    My current project is hinging on the numbering module to generate Transaction/Document No.

    Really appreciate your advice on where to implement "EF optimistic concurrency" that is aligned to abp framework.

    Thanks. /Tommy

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We are not planning to implement this feature in short term. Since this is a common concept of software development, you can find more info and sample implementations on the internet. You can also check Entity Framework's github repository as well.

    Thanks.

  • User Avatar
    0
    tteoh created

    <cite>ismcagdas: </cite> Hi,

    We are not planning to implement this feature in short term. Since this is a common concept of software development, you can find more info and sample implementations on the internet. You can also check Entity Framework's github repository as well.

    Thanks.

    Hi Support,

    Thank you for the confirmation above.

    May I know which method I should use:

    1. Custom Repository
    2. Entity Framework Integration - Custom Repository

    Hope to get some pointers as I am still learning to developer using Abp framework and the amount of learning is little overwhelming for me right now and I m short of time.

    Thanks, /tommy

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Please don't take it wrong, I didn't give you any instruction because I don't want to send you on a wrong direction. We don't have very well knowledge on this area. I found this article on the web, <a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application">https://docs.microsoft.com/en-us/aspnet ... pplication</a>. It might give you a basic idea in order to complete your work.

    Finally, you can do it in a custom repository I think.

    Thanks.

  • User Avatar
    0
    tteoh created

    <cite>ismcagdas: </cite> Hi,

    Please don't take it wrong, I didn't give you any instruction because I don't want to send you on a wrong direction. We don't have very well knowledge on this area. I found this article on the web, <a class="postlink" href="https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application">https://docs.microsoft.com/en-us/aspnet ... pplication</a>. It might give you a basic idea in order to complete your work.

    Finally, you can do it in a custom repository I think.

    Thanks.

    Hi, having some guided instructions is always better than none :lol:

    That's the same article that I have read and been thinking what's the best way to incorporate the exception handling into AspNet Zero. I shall try out the Custom Repository approach instead of EF-Integration Custom Repository.

    Thanks. /Tommy