Wondering if there is any way to set the save/update operation of a repository to use optimistic concurrency? Haven't seen any method to do this? Or maybe it's configured this way by default?
SharpRepository + OptimisticConcurrency
162 Views Asked by bbqchickenrobot At
1
There are 1 best solutions below
Related Questions in RAVENDB
- How to ignore a property during serialization for RavenDB
- Example or Documentation to implement Persistent Storage and Transactional Outbox in MassTransit?
- RavenDB setup on one machine: Unable to setup Node B
- Is it possible to create RavenDB map-reduce index that contains generic type via IndexCreation.CreateIndexes?
- How can I execute a JS index in RavenDB?
- Update RavenDB Raven-Clr-Type after moving class to new namespace
- Ravendb get Latest orderId group by customer
- Unable to export database using smuggler
- Modelling location history in RavenDB (to get entities state at certain time)
- How to interchange between (embedded) Raven db 3.5 License string and License.xml file
- Does RavenDB tokenize and filter queries?
- RavenDB NodeJs patch and increment buggy
- RavenDb: Why filtering while string == null filters too much?
- RavenDB Python Client UseOptimisticConcurrency, does this option exist?
- Query RavenDB 5 with complex logic
Related Questions in SHARP-REPOSITORY
- How can I use the SharpRepository to create a local filesystem repository of my data
- SharpRepository .NET Core no implementation for asynchronous operations
- Performance issue with fluent query in EF vs SharpRepository
- SharpRepository EfCoreRepository Initialization in .net Core
- SharpRepository.EntityFramework caches data even if I tell it not to, how can I prevent it?
- How do I setup SharpRepository to work with AutoFac & Entiry Framework?
- How can i use custom dbcontext (Audit Log) with sharprepository
- SharpRepository: XmlRepository implementation
- How can I do a $regex call with SharpRepository?
- I need to bind with Ninject to database and inject them to same repository in same time
- sharp-repository custom repositories with structuremap
- How to get distinct paged list from SharpRepository FindAll method with selector?
- SharpRepository Unit Testing CacheRepository Unable to Add Multiple Items
- How can I seed SharpRepository's InMemoryRepository?
- SharpRepository is not disposing of repositories in testing?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I'm assuming you are talking about the RaveDbRepository based on the question.
Unfortunately, right now there isn't a way to do that. Many of the RavenDb specific needs can't currently be addressed through using SharpRepository to interface with it, but we would like to get to that point.
Currently, a document store is used to instantiate the RavenDbRepository which is then used to create the IDocumentSession (by calling documentStore.OpenSession()). Since the flag for using optimistic concurrency is on the session itself there currently isn't a great way to handle this.
Please post an issue on GitHub for us about this and we'll look into making it happen. Off the top of my head we have some options:
Allow public or protected access to IDocumentSession so that you could access the session directly or in an inherited class and set that flag.
Allow the ability to instantiate a RavenDbRepository from a IDocumentSesison instead of a DocumentStore, so that the settings could be made while creating the repository.
Somehow work these into the default conventions, though I'm not sure how.