示例#1
0
 public CardStatisticVM(Card card, CardVM cardVM, VM vm)
 {
     _card   = card;
     _vm     = vm;
     _cardVM = cardVM;
     InterestsPassingsCount    = 3;
     SameTitleCardsStatisticVM = new SameTitleCardsStatisticVM(card, cardVM, vm, this);
 }
示例#2
0
        public SameTitleCardsStatisticVM(Card card, CardVM cardVM, VM vm, CardStatisticVM cardStatisticVM)
        {
            _card                  = card;
            _vm                    = vm;
            _cardVM                = cardVM;
            _cardStatisticVM       = cardStatisticVM;
            InterestsPassingsCount = 3;

            CardPassings = DBTools.Context.Cards.Where(c => c.Title == card.Title).Select(c => c.CardPassings).SelectMany(c => c).ToList();
        }