Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in PropertyHasChanged() #44

Open
PatrikTrestik opened this issue Aug 21, 2018 · 4 comments
Open

Exception in PropertyHasChanged() #44

PatrikTrestik opened this issue Aug 21, 2018 · 4 comments
Assignees

Comments

@PatrikTrestik
Copy link

PatrikTrestik commented Aug 21, 2018

I'm getting

ArgumentException: Key was already added
in
System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) v System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer`1 comparer)
v TrackerDog.ObjectChangeTrackingExtensions.GetPropertyTracking(Object some, String propertyName)

target.GetChangeTracker().ChangedProperties shows correctly changed property info.

I'm posting here to check if I'm doing something wrong.
Example and Source debugging will follow.

@mfidemraizer
Copy link
Owner

Yes, please provide an example to further investigate the issue! 👍

@PatrikTrestik
Copy link
Author

Hi. I had to change for a different solution because of the very high performance impact of TrackingDog. It slowed down reading of 800 records 10 times.

I'll try to investigate the above error further but I have to do it in my spare time as my work project no more utilizes TrackingDog. It can take some time, sorry.

@mfidemraizer
Copy link
Owner

mfidemraizer commented Aug 22, 2018

@PatrikTrestik Does your workplace's project use an OR/M already? Anyway, creating proxies has some perfomance impact.

I doubt, anyway, that TrackerDog could slowdown 10 times the perf: it should be something with how things were configured.

@mfidemraizer
Copy link
Owner

@PatrikTrestik Also, the way you use TrackerDog may impact the perfomance too. I should know the use case...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants