Question : Transaction in entity framework

I have an asp.net web application which has a button that calls two methods: ProcesarInformacion and ProcesarLibroFolio
VIEW FILE:codeASPNET

when ProcesarInformacion is:
public void ProcesarInformacion(int codigoActividadesDiscente, string firmaEscaneadaDA, string firmaEscaneadaDG)
{
  private bdradesanewEntities db = new bdradesanewEntities();
  db.ProcesarInformacion(codigoActividadesDiscente, firmaEscaneadaDA, firmaEscaneadaDG);
}
ProcesarInformacion is an storeprocedure with transaction
....
BEGIN TRANSACTION    -- Start the transaction
BEGIN TRY
   --Calcular el ultimo correlativo
   SELECT @UltimoCorrelativo = UltimoCorrelativo
   FROM      c
....

something very similar to: ProcesarLibroFolio method

My question is how I can use transactions to ensure the execution of these two methods: ProcesarInformacion and ProcesarLibroFolio
I am using: .net frameworrk 3.5, visual studio 2008, entity framework, asp.net
Attachments:
 
codeASPNET
codeASPNET
 

Answer : Transaction in entity framework

Random Solutions  
 
programming4us programming4us