An entity object cannot be referenced by multiple instances of IEntityChangeTracker#140
Conversation
…ed to false for NoCachingStrategy and true otherwise. this changes the behavior of the CacheEnabled status remaining the same as it was prior to the CachingStrategy being updated. modified: SharpRepository.Repository/RepositoryBase.cs modified: SharpRepository.Tests/SharpRepository.Tests.csproj new file: SharpRepository.Tests/Spikes/CacheEnabledSpike.cs
Added private function NotifyQueryManagerOfUpdatedEntity to RepositoryBase which calls QueryManager.OnItemUpdated. Changed RepositoryBase.ProcessUpdate to use NotifyQueryManagerOfUpdatedEntity when not in batch mode. Changed Batch.Commit to call NotifyQueryManagerOfUpdatedEntity for each updated enity only after _repository.Save() is called. modified: SharpRepository.Repository/RepositoryBase.Batch.cs modified: SharpRepository.Repository/RepositoryBase.cs
…to account. modified: SharpRepository.Repository/RepositoryBase.Batch.cs modified: SharpRepository.Repository/RepositoryBase.cs
modified: SharpRepository.Repository/RepositoryBase.cs
…into DanPantry-master
I think this is a better fit for the Azure Table world.
Both params TKey[] and IEnumerable<TKey> fixes #119
Allows people to use the repository to get the primary key based on the same conventions, etc. that are used internally.
Using entities that PK name that doesn't follow convention. It failed without the [RepositoryPrimaryKey] attribute as expected.
Allow configuration via config file
Removed new() restriction from EfRepository<>
added createIfNotExists support to config file
ServiceStack started a commercial license with their newest version with low limits on usage of the free version. So we switch to the free StackExchange.Redis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When use :
CategoryDomain relation into PostDomain , in added post item
see error in Ef5RepositoryBase.cs ln 41.
thats error is 'An entity object cannot be referenced by multiple instances of IEntityChangeTracker 'when proxyConfiguration disable and see 'Violation of PRIMARY KEY constraint ' error when proxyConfiguration enabled