In the RavenDB mailing list, we got a question about tagging. In this case, the application need:
1. Tags have identity ("set" has a different meaning if I'm talking math, music or sports).
2. I want to know who tagged what and when.
3. I want to do this once, as a service, so i don’t need have ids in each document i want to tag. In my app, there are many such document types.
Let us see how we can approach this in RavenDB. We are going to do it like so:

image_2.png

image_6.png
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/301743/viewspace-734956/
,如需转载,请注明出处,否则将追究法律责任。