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:
4 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        } 
  • branches/Emisje/Wierszowki/Wierszowki.Model/Linq/User.cs

    r752 r838  
    88    public partial class User : UserValidation, IIdentifiable 
    99    { 
     10        public string FullName { get { return FirstName + " " + LastName; } } 
    1011    } 
    1112} 
  • branches/Emisje/Wierszowki/Wierszowki.Model/Linq/WierszowkiDataContext.cs

    r752 r838  
    6060        public IQueryable<Issue> FindIssuesByMagazineId(int magazineId) 
    6161        { 
    62             var startDate = DateTime.Now.AddMonths(-1); 
     62            var startDate = DateTime.Now.AddMonths(-3); 
    6363            var endDate = DateTime.Now.AddMonths(1); 
    6464