This question is locked. New answers and comments are not allowed.
I understand the enhancer.exe utility must run on post-build of the assembly that contains entities, correct? I'd like to know what it looks for in order to determine if it should or should not apply the enhancing on the assembly.
The assembly I am targeting has MappingConfiguration classes and the entity classes, but does not define any metadatasource objects. It seems like since you support the ability to dynamically add metadata sources using the AggregateMetadataSource object, then I should be able to instantiate the MetadataSource objects from wherever else in the application as long as I am passing in a complete metadata container to the OA context constructor. My problem is that the enhancer.exe is not executing against my entities assembly unless I define the FluentMetadataSource within that same assembly as my entities and mapping objects.
The code I am referring to is in GitHub and I have a unit test OAContextManagerTests.InitializeManager() that shows the error I'm talking about. The code is accessing a LocalDB instance of Northwind. The purpose of this particular code design is to encapsulate the ORM in abstraction and then compare both EF and OA against it:
https://github.com/diegohb/ORMPRS/tree/master/src
I'd really appreciate any support to figure this out. Could it be as simple as a parameter to the enhancer.exe that allows one to force enhancing based on class names or something regardless of preconditions explicitly checked?
Thanks in advance...
The assembly I am targeting has MappingConfiguration classes and the entity classes, but does not define any metadatasource objects. It seems like since you support the ability to dynamically add metadata sources using the AggregateMetadataSource object, then I should be able to instantiate the MetadataSource objects from wherever else in the application as long as I am passing in a complete metadata container to the OA context constructor. My problem is that the enhancer.exe is not executing against my entities assembly unless I define the FluentMetadataSource within that same assembly as my entities and mapping objects.
The code I am referring to is in GitHub and I have a unit test OAContextManagerTests.InitializeManager() that shows the error I'm talking about. The code is accessing a LocalDB instance of Northwind. The purpose of this particular code design is to encapsulate the ORM in abstraction and then compare both EF and OA against it:
https://github.com/diegohb/ORMPRS/tree/master/src
I'd really appreciate any support to figure this out. Could it be as simple as a parameter to the enhancer.exe that allows one to force enhancing based on class names or something regardless of preconditions explicitly checked?
Thanks in advance...