public IListenedShow CreateListenedShow( Guid showId, Guid userId, DateTime showDate, int status, string notes, bool attended ) { var now = Constants.Now(); ListenedShow show = new ListenedShow { CreatedDate = now, Id = Guid.NewGuid(), Notes = notes, ShowId = showId, Status = status, UserId = userId, ShowDate = showDate, Attended = attended, UpdatedDate = now }; return show; }
private void detach_ListenedShows(ListenedShow entity) { this.SendPropertyChanging(); entity.Show = null; }
private void attach_ListenedShows(ListenedShow entity) { this.SendPropertyChanging(); entity.Show = this; }