I have a problem using tags when I have multiple providers setup, in that tagging only works properly for the default provider.
for example in web.config say I have
<add name="RoleConnection" driver="Nolics.ORMapper.DataProviders.SqlServer2005Provider" connectionStringName="RoleSpecific"/>
<add name="SharedConnection" driver="Nolics.ORMapper.DataProviders.SqlServer2005Provider" connectionStringName="Shared"/>
The two connections above reference different connection strings which point to 2 seperate databases.
Now, if I go into the admin section of the site, navigate to a library within images and document and click on tags, the counts for both Roles Provider and Shared Provider will be correct, but if I click on the tag, only shared provider will show any documents (as it is set as default), if I switch RoleProvider to default then only it will show documents by tag.
Where this becomes a big problem is when pulling in documents via the codebehind, for example
SharedItems = this.SharedManager.GetContent(0, 0, this.SortExpression, "someTag", library);
RoleItems = this.RoleManager.GetContent(0, 0, this.SortExpression, "SomeTag", library);
only one of these will return data, whichever one is set as default in the web.config. If I leave out the tag then both will pull in all documents fine.
I can work around this by leaving out the tag so all documents are returned and then using a loop such as the following, but this is very inconvenient.
foreach (IContent content in RoleItems)
IList taglist = this.RoleManager.GetTags(content.ID);
.... do something
please see attached screenshots as well...