The Member with Identity '' does not exist in the Metadata Collection?

Asked

Viewed 132 times

0

I couldn’t find how to solve this problem between my base and my mapping using Fluent API.

I have a Fluent API mapping of a certain pre-existing table in the client database, but this table has a Trigger which is fired at the time of the Insert / update, every time I run my insert test it gives the error entered in the title.

I’ve tried to do that:

Configuration.ValidateOnSaveEnabled = false; 

but did not resolve.

  • Welcome to Stackoverflow in English. I edited your question to remove the greetings, as we usually keep them as clean as possible to focus on your scheduling question. If you are interested in visiting a part of the site that is not aimed to ask questions can know the Stack Overflow Chat in Portuguese. If you have questions about the operation, rules and procedures of the site visit the Stack Overflow in English Meta :)

  • Put in your question the relationship, indicate the information related to this insert/update

  • @Virgilionovic I can not demonstrate here to Trigger because of the confidentiality of the project, the only thing to say is that the legacy code there are no problems with Rigger it works perfectly, i just want to understand why the Fluent mapping I did for all other entities work and for this not the Identity error on behalf of Trigger

  • problem solved, I identified that Trigger had a return select that and the system did not have a field to receive the result of that select

1 answer

1

Trigger returned a select and the mapping did not expect a return and so was giving the error

Browser other questions tagged

You are not signed in. Login or sign up in order to post.