Pokaż
Ignoruj:
Data:
2009-09-30 15:49:14 (17 years ago)
Autor:
marek
Opis:

re #195 - merged with latest trunk

Lokalizacja:
branches/Emisje
Pliki:
2 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/Emisje

    • Property svn:mergeinfo
      •  

        old new  
         1/branches/AutoShopper:815-818 
        12/branches/ReklamaReorganizacja:568-731 
        2 /trunk:774-810 
         3/tags/BazaReklam_1.1.28:831 
         4/trunk:774-837 
  • branches/Emisje/Wierszowki/Wierszowki.Model/Linq/LinqRepository.cs

    r752 r838  
    125125        public void Delete(T entity) 
    126126        { 
    127             using (var dc = new WierszowkiDataContext()) 
     127            if (entity != null) 
    128128            { 
    129                 dc.GetTable<T>().Attach(entity); 
    130                 dc.GetTable<T>().DeleteOnSubmit(entity); 
    131                 dc.SubmitChanges(); 
     129                _dataContext.GetTable<T>().DeleteOnSubmit(entity); 
     130                _dataContext.SubmitChanges(); 
    132131            } 
    133132        }