I tried to picked out all Meta Data classes into separate project and used InMemoryMetadataManager.
I wrote the next code:
public static void RegisterMetaData()
{
InMemoryMetadataManager.AddTableAttributes<Log>(new ScaffoldTableAttribute(false));
InMemoryMetadataManager.AddTableAttributes<User>(new MetadataTypeAttribute(typeof(UserMetaData)));
}
...
RegisterMetaData();
ContextConfiguration config = new ContextConfiguration
{
ScaffoldAllTables = true,
MetadataProviderFactory = (type => new InMemoryMetadataTypeDescriptionProvider(type, new AssociatedMetadataTypeTypeDescriptionProvider(type)))
};
model.RegisterContext(typeof(Entities), config);
The result is that Log is not showed, but template for User is not applied.