The easiest way to permanently delete the result set of a domain method that is removed from the context is in Model Object Explorer
. I would suggest to you the following workflow:
1. Open the domain model in Visual Designer
and navigate to Model Object Explorer
2. Expand the Domain Methods Return Shapes
3. Right-click on the type you want to delete (you can select more then one type at once) and select Delete
4. Save the .rlinq file
Note that, once the domain model is saved after the types are removed, OpenAccess ORM will remove the generated .cs\.vb files and if these types are already used in your code, you will experience build errors.
Regarding the distinction between used and unused return shapes - currently, when the visual representation in Model Object Explorer is created, OpenAccess ORM does not explicitly check, if the domain method that used to own the return shape still exists. The point here is that even if it does not, that type might be used somewhere in your code.
A manual workaround would be to review the Domain Method Return Shape
property of the domain methods in (the Domain Methods node) and based on the used return shapes to filter the unused ones.
I hope this helps. If you have additonal questions, or experience difficulties, do not hesitate to get back to us.
OpenAccess ORM Q2 2013 brings you a more powerful code generation and a unique Bulk Operations support with LINQ syntax. Check out the list of new functionality and improvementsshipped with this release.