1
Premise:
I’m using Entityframework6 for data persistence in Sqlserver. In a certain period I need to record data on two different tables, but the second table is dependent on the first example.
try{
MetodoPersisteNaTabelaA();
MetodoPersisteNaTabelaB();
}
exception(Exception e){
Erro();
}
I need that if there is an error in the recording of table B that gives rollback in table A.