This question is locked. New answers and comments are not allowed.
Hi All!
I have a question about the Open Access Model. I have two separate models in the same project, both of which contain the same reference table.
When I compile the project, I get a "Duplicated Metadata entries found for type PartMaster. Please use only one way of mapping." comiler error. It seems that the Enhancer is throwing this error.
I can see a couple of solution paths, but I am not sure how to embark on either, so some guidance would be appreciated. Here are the solution paths:
Option 1: Create a Fluent Model that tells the Enhancer to IGNORE the reference table in question. I have found documentation that tells me that the presence of a Fluent Model will tell the Enhancer to only follow the explicitly mapped entities. This is not what I want, as I want to indicate that the reference table entity should be ignored.
Option 2: Add some logic to the models to tell each that the reference table is the same entity. Not sure how to do this... Is there a way to tell the model that the entity is the same persisted entity in another model.
Any ideas would be much appreciated.
j.
I have a question about the Open Access Model. I have two separate models in the same project, both of which contain the same reference table.
When I compile the project, I get a "Duplicated Metadata entries found for type PartMaster. Please use only one way of mapping." comiler error. It seems that the Enhancer is throwing this error.
I can see a couple of solution paths, but I am not sure how to embark on either, so some guidance would be appreciated. Here are the solution paths:
Option 1: Create a Fluent Model that tells the Enhancer to IGNORE the reference table in question. I have found documentation that tells me that the presence of a Fluent Model will tell the Enhancer to only follow the explicitly mapped entities. This is not what I want, as I want to indicate that the reference table entity should be ignored.
Option 2: Add some logic to the models to tell each that the reference table is the same entity. Not sure how to do this... Is there a way to tell the model that the entity is the same persisted entity in another model.
Any ideas would be much appreciated.
j.