예제 #1
0
 void DisposeContextIfExists()
 {
     if (skillRepository != null)
     {
         context?.Database?.RollbackTransaction();
         skillRepository.Dispose();
     }
 }
예제 #2
0
 void DisposeContextIfExists()
 {
     if (userRepository != null)
     {
         context.Database.RollbackTransaction();
         userRepository?.Dispose();
         skillRepository?.Dispose();
         projectRepository?.Dispose();
         locationRepository?.Dispose();
     }
 }