Coder Social home page Coder Social logo

Comments (11)

hikalkan avatar hikalkan commented on May 13, 2024 5

Hi,

I agree that concurrency conflicts is an important topic. Let me write my opinions:

First of all, there is no restriction in ABP to use the techniquies described in given link. You can do with EF whatever you can do with it without using ASP.NET Boilerplate.

The point is that: It's a little hard thing to implement concurrency as described in given link. Also, it requires similar works for all entity types. Can ASP.NET Boilerplate provide a common and easy way for that? Yes, it can :) Is it a feature of an application framework? Yes, I think. When? I don't know, we should plan it. How? We can discuss it here for different approaches. It may be like that:

We can define an interface (like IHasConcurrency) that defines a RowVersion property as like in the article. Then, rest is done by ABP like that:

  • While an IHasConcurrency entity is being updated/deleted, if EF throws a DbUpdateConcurrencyException then ABP handles it, rollbacks transaction and return an appropriate error message to the client.
  • In the client side, ABP handles these types of errors, shows it to the user and maybe allows a way of refreshing the entity in the screen.

What's your opinion?

from aspnetboilerplate.

tom177y avatar tom177y commented on May 13, 2024 2

+1. Hope this can become a feature enahancement.

from aspnetboilerplate.

codemonkey21 avatar codemonkey21 commented on May 13, 2024

I agree that this interface is the way to go. I was originally planning on creating my own interface for it, but wasn't sure if it would conflict with the deeper levels of ABP which is why I suggested it here. I like your suggestions.

from aspnetboilerplate.

yuanjingxp avatar yuanjingxp commented on May 13, 2024

EF provider ConcurrencyCheck Attribute control esignates that a property participates in optimistic concurrency checks.

https://msdn.microsoft.com/zh-cn/library/system.componentmodel.dataannotations.concurrencycheckattribute(VS.95).aspx

from aspnetboilerplate.

mhascak avatar mhascak commented on May 13, 2024

+1

from aspnetboilerplate.

natiki avatar natiki commented on May 13, 2024

+1

from aspnetboilerplate.

brunobertechini avatar brunobertechini commented on May 13, 2024

+1

from aspnetboilerplate.

pantonis avatar pantonis commented on May 13, 2024

+1

from aspnetboilerplate.

Cuiqs76 avatar Cuiqs76 commented on May 13, 2024

+1

from aspnetboilerplate.

tom177y avatar tom177y commented on May 13, 2024

This is the English link:

https://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.concurrencycheckattribute(VS.95).aspx

from aspnetboilerplate.

maharatha avatar maharatha commented on May 13, 2024

Any idea when we can expect this to implemented in ABP

from aspnetboilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.