8000 An entity object cannot be referenced by multiple instances of IEntityChangeTracker by behzad888 · Pull Request #140 · SharpRepository/SharpRepository · GitHub
[go: up one dir, main page]

Skip to content

An entity object cannot be referenced by multiple instances of IEntityChangeTracker#140

Closed
behzad888 wants to merge 24 commits intomasterfrom
develop
Closed

An entity object cannot be referenced by multiple instances of IEntityChangeTracker#140
behzad888 wants to merge 24 commits intomasterfrom
develop

Conversation

@behzad888
Copy link

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

Craig Maslowski and others added 24 commits January 14, 2014 11:19
…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
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.
< 6880 div class="pr-1 d-md-inline-block d-none">
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
@behzad888 behzad888 closed this Jul 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0