Yes, have a look to <any> and <many-to-any> mappings tags.
2010/3/29 ZNS <[email protected]>
> Hi!
>
> I've been wrecking my mind on how to get my tagging of entities to
> work. I'll get right into some database structuring:
>
> tblTag
> TagId - int32 - PK
> Name
>
> tblTagEntity
> TagId - PK
> EntityId - PK
> EntityType - string - PK
>
> tblImage
> ImageId - int32 - PK
>
> tblBlog
> BlogId - int32 - PK
>
> -----------------------------
>
> class Image
> Id
> EntityType { get { return "MyNamespace.Entities.Image"; }
> IList<Tag> Tags;
>
> class Blog
> Id
> EntityType { get { return "MyNamespace.Entities.Blog"; }
> IList<Tag> Tags;
>
> -------------------------------
>
> The obvious problem I have here is that EntityType is an identifer but
> doesn't exist in the database. If anyone could help with the this
> mapping I'd be very grateful.
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
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.