Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Exemple #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);
        }
Exemple #2
0
 partial void InsertSpeech(Speech instance);
Exemple #3
0
 private void detach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Politician = null;
 }
Exemple #4
0
 private void attach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Speech1 = this;
 }
Exemple #5
0
 private void detach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Deliberation = null;
 }
Exemple #6
0
 partial void DeleteSpeech(Speech instance);
Exemple #7
0
 partial void UpdateSpeech(Speech instance);