상속: INotifyPropertyChanging, INotifyPropertyChanged
예제 #1
0
파일: Feed.cs 프로젝트: friism/folketsting
        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);
        }
예제 #2
0
 partial void InsertSpeech(Speech instance);
예제 #3
0
 private void detach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Politician = null;
 }
예제 #4
0
 private void attach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Speech1 = this;
 }
예제 #5
0
 private void detach_Speeches(Speech entity)
 {
     this.SendPropertyChanging();
     entity.Deliberation = null;
 }
예제 #6
0
 partial void DeleteSpeech(Speech instance);
예제 #7
0
 partial void UpdateSpeech(Speech instance);