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