I have a SharePoint 2013 site with Multi Tenancy configured. I have a Managed Metadata Service also configured in Partitioned Mode since it is a multi tenant environment. I have a Visual Studio project with Site Columns, Content Types, Lists and Event Receivers. Some of the Site Columns are of Taxonomy type. Also, all the Site Columns and Content Types are declarative (CAML based). The lists are created through code. There is a reason for this. For every Tenant, we have a site collection for Content Type Hub, Root Site and Document Center Site along with the Tenant Admin site. Once we deploy the Site Columns and Content Types in our Content Type Hub and publish the Content Types, these Content Types don't reflect in the other site collections till the Content Type Subscriber Timer Job runs (we have configured it to run for every 1 min, though) and our lists need to be created in the Root Site and they need these Site Columns / Content Types. So, if we create the lists declaratively using CAML, then we were facing issues, since the Columns and Content Types were not getting populated. We could get around this only by creating the lists through code.
In the above scenario, we have some Parent Content Types and Child Content Types and lists in my root site are created from the Child Content Types. For 3 to 4 lists, we have written a common event receiver for Item Added and Item Updated events. Hence we tried to attach this event receiver on the Child Content Types (attached to different lists). But these event receivers are not firing. I read in some blogs that, event receivers have to be attached to the Parent Content Type and it will work. This also didn't work. Since our content types are published and subscribed, we tried to attach the event receivers before publishing, but they don't get subscribed though the content types did. Hence I tried to attach the event receivers directly to the content types, after they get subscribed in the root site, but still it didn't work. We tried both declarative and code based approaches for attaching the event receivers to the content type, but with no luck at all. Can anyone please help?