
Hello,
I want to add a defaultCTQuery() method to an standard data entity with the purpose to enable change tracking with custom query. How could I do it without overlaying it? I tried creating an extension class with an static method but when I try to enable change tracking with custom query I receive the error message "Custom query is not present on entity xxxxxxxxxx".
*This post is locked for comments
I have the same question (0)Ok I answer to myself: You cannot extend a data entity for adding new methods. What you can do if you don't want overlaying standard data entities is to duplicate an existing one and customize it adding the new methods that you need.
In this case you duplicate the data entity and add the defaultCtQuery() method.