Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Mono Support Monox - MonoX_4_7_40_3323 - Problems with custom webpart built of calander. 

Viewed 831 time(s) ,  2 post(s).   4 month(s) ago  by shawndg 
1 shawndg
1841 Reputation
250 Total posts
This content has not been rated yet. 
shawndg 4 month(s) ago
Hi guys,

some time ago, we created a web part based of the MonoX web part to allow us to change the listing order by of the calendar web part.

simple view..
selection in our calender.. This broke because the
SD.LLBLGen.Pro.ORMSupportClasses; appears to have changed =/

The following code is broken..
filter.PredicateExpression.Add(CalendarEventFields.CalendarId ==
this.CalendarId);

Inside the MonoSoftware.MonoX.ModuleGallery.EventSimpleView
There is the property of CalendarId but inside
MonoSoftware.MonoX.DAL.HelperClasses - CalendarEventFields
There is no longer a CalendarId field.. there is only a ID which don't
seem to work the same way..

Any idea how to fix this ?

2 pajo
369 Reputation
43 Total posts
This content has not been rated yet. 
pajo 4 month(s) ago
Hi,

yes we did change calendar system, so that one event can be attached to more calendars. So we had to add table for many to many relation, therefor CalendarId field is no longer on event entity. You need to change your filter code like this

filter.Relations.Add(CalendarEventEntity.Relations.CalendarEventEntryEntityUsingCalendarEventId);
filter.PredicateExpression.Add(CalendarEventEntryFields.CalendarId == this.CalendarId);

this should fix error you get.