It will require you coding it into the runtime, and although it's of course doable, it's not recommended.
Couple of options:
- create some templates which generate simple DTO classes, which you serialize to XML using the .net xml serialization classes. This will give simple XML. The only thing you then have to do is to convert an entity instance into a DTO instance of the equivalent type (e.g. customer to CustomerDTO instance), which can be done in a generic method. There are several DTO templates available on this forum, please search for DTO template. As the 3rd party tool likely will communicate with your app through a service, this will allow you to distribute the dto's through the service.
- create an adapter project in a different namespace for the entities you want to communicate with the 3rd party tool. To me it seems that the 3rd party tool will simply alter values in an existing entity, and also not all entities, am I correct? so it's doable for '3rd party connectivity' to use a service using adapter entities on the same DB. You can automate generating this code with the command line code generator app we ship with llblgen pro: use a different namespace for the adapter assembly. If you use a smaller set of entities, then of course you need to have two projects.