Given:
Event (Title, Description)
Occurrence ( Event, Date )
The following code throws an exception
DetachedCriteria dc = DetachedCriteria.For<Occurrence>();
DetachedCriteria eventCriteria = dc.CreateCriteria("Event","event");
Session.BuildEventCriteria(eventCriteria, eventSpec);
public static DetachedCriteria BuildEventCriteria(this ISession
session, DetachedCriteria criteria, EventSpecification spec)
{
if (!typeof(Event).FullName.Equals
(criteria.EntityOrClassName))
{
throw new ArgumentException("Criteria must be on
Event.");
}
.....
}
Is it expected that
eventCriteria.EntityOrClassName is 'My.Namespace.Occurrence'
instead of 'My.Namespace.Event'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---