How would you map the following?
public virtual IDictionary<Guid, IList<Answer>> AnswerGroups
{ get; set; }
In a lazy way that could solve as a sort of lookup table - that is, it
will contain a lot of answers, but you will often only need to access
a few of the guids, so it shouldn't load up the entire dictionary when
you accessed one:
// Should do something like SELECT * FROM Answer Where
AnswerGroupId = '<someGuid>'
var answers = Answers[someGuid];
Is it even possible at that form? I was thinking you might need to
bring in a custom collection entity so it would be two one-to-manys, a
Map and a Bag/Set:
public virtual IDictionary<Guid, AnswerGroup> AnswerGroups { get;
set; }
Actually the Guid is also a reference to another entity, so it could
even be:
public virtual IDictionary<Entity, AnswerGroup> AnswerGroups
{ get; set; }
But that might just make it even more compilicated :-)
Maybe another approach would be more viable for this - am I on the
wrong track? Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---