Hi Pratiksha,
Take a look at MxModelReflection. It already has similar implementation.
See below screen shot: with that filter you can see the list of Non persistent entities in the list.
May be you can use the domain model and achieve what you want to.
Hi Pratiksha,
did you use the MxModelReflection module?
if you do, you can use this retrieve to get all entities that are non_persistent.