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

error saving one to 0-1 relation #131

Open
asbadawi opened this issue Nov 17, 2016 · 2 comments
Open

error saving one to 0-1 relation #131

asbadawi opened this issue Nov 17, 2016 · 2 comments

Comments

@asbadawi
Copy link

at TrackerEnabledDbContext.Common.Auditors.LogAuditor.GetPrimaryKeyValuesOf(DbEntityEntry dbEntry, List1 properties) at TrackerEnabledDbContext.Common.Auditors.LogAuditor.CreateLogRecord(Object userName, EventType eventType, ITrackerContext context, ExpandoObject metadata) at TrackerEnabledDbContext.Common.CoreTracker.AuditChanges(Object userName, ExpandoObject metadata) at TrackerEnabledDbContext.Identity.TrackerIdentityContext6.SaveChanges(Object userName)

@bilal-fazlani
Copy link
Owner

Could you please provide more information.

@oleksiivasylenko
Copy link

I've just get exactly the same error.

After all my "EntityTracker.TrackAllProperties<OBJECT>();" setups
I have a line with filter for modelBuilder

modelBuilder.Filter("IsDeleted", (ISoftDeletable d) => d.IsDeleted, false);

The problem is that code tried to add new Item to repository with IsDeleted = true and it cause such error.
When I removed this filter or fix code not to save items which are isDeleted, everything works fine.

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

No branches or pull requests

3 participants