Error on context.SaveChanges()
See original GitHub issueHello, I’m stuck on this error trying to save my entity with the library:
em System.Linq.Enumerable.Single[TSource](IEnumerable
1 source, Func2 predicate) em EntityKeyHelper.GetMapping(Type type, DbContext context) em EntityKeyHelper.GetColumnName(Type type, String propertyName, DbContext context) em Audit.EntityFramework.DbContextHelper.GetChanges(DbContext dbContext, DbEntityEntry entry) em Audit.EntityFramework.DbContextHelper.CreateAuditEvent(IAuditDbContext context) em Audit.EntityFramework.DbContextHelper.SaveChanges(IAuditDbContext context, Func
1 baseSaveChanges)
em Audit.EntityFramework.AuditIdentityDbContext1.SaveChanges() em Stock.Data.Repositories.TransacaoRepository.ResolveTransaction(Boolean updateAveragePrice, Transacao[] transactions) na C:\Projetos\palm-stock\Palm.Stock\Stock.Data\Repositories\TransacaoRepository.cs:linha 99
Thanks in advance for this wonderful job on auditing items, it’s a time saver for us debuggin’ things 😉
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hi, thanks for your comments.
Unfortunately with the information provided I cannot tell what could be happening.
Are you using any kind of inheritance on your model/entity classes? Does this happens when you modify a particular entity type, or any? Can you provide a minimal test code including the model classes having problems?
Sorry, I missed the time to do it because of other project.
You can close, but I’ll let you know when change back to track
Em sex, 4 de ago de 2017 às 18:09, Federico Daniel Colombo < notifications@github.com> escreveu: