I am using OpenAccess to map a multi-tenant database and expose it through a Wcf Data Service. Most of the tables have a “TenantId” column which is necessary to include in the domain classes in order to perform filtering, authorization, crud and so on. For security reasons these TenantId column must not be included in the service’s metadata as it is going to be managed using interceptors.
I have tried to hide it using the IgnoreProperties attribute (microsoft.data.services) but it doesn’t work and I assume the reason has to do with the IOpenAccessMetadataProvider not processing this foreign attribute.
Is there a way to prevent this column to appear in the data service without having to split the domain classes into public and private pairs?
Thanks in advance