Premise:
I'm using EntityFramework6 for data persistence in SQLServer. At some point I need to write data in two different tables, but the second table has dependency on the first example.
try{
MetodoPersisteNaTabelaA();
MetodoPersisteNaTabelaB();
}
exception(Exception e){
Erro();
}
I need if there is error writing table B that rolls back to table A.