Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Esempio n. 1
0
        public FeedEvent(Speech speech, int? commentcount)
        {
            this.date = speech.Deliberation.Date.Value;
            this.BodyText = speech.SpeechParas.OrderBy(_ => _.Number).Take(3).
                        Select(_ => _.ParText).Aggregate((a, b) => a + " " + b).PresentText(200);

            this.ActionText = "Debaterede ved " + speech.Deliberation.Number.UrlValue() + ". behandling";
            this.ActionUrl = speech.LinkTo();

            this.SubjectText = speech.Deliberation.Law.ShortName.PresentText(35);
            this.SubjectUrl = speech.Deliberation.Law.DetailsLink();

            this.Comments = commentcount;
            this.Binder = "af";
            //this.Comments = speech.SpeechParas.Sum(_ => _.SpeechParaComments.Count);
        }
Esempio n. 2
0
 partial void InsertSpeech(Speech instance);
Esempio n. 3
0
 private void detach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Politician = null;
 }
Esempio n. 4
0
 private void attach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Speech1 = this;
 }
Esempio n. 5
0
 private void detach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Deliberation = null;
 }
Esempio n. 6
0
 partial void DeleteSpeech(Speech instance);
Esempio n. 7
0
 partial void UpdateSpeech(Speech instance);