NEST: inference derived class into base class using condition with automapping

Hi, i have in my model an object type "Order" that it contains a property of type "Customer".
Customer is a base class with some tipically fields (customerType, name, surname, etc.) and its a base class because customer can be type "PrivateCustomer" or "BusinessCustomer" (derived class from customer) using a inherited property "customerType" .
Now, i'm trying to use automapping objects in NEST to get a derived class when i put object in elastichsearch, but NEST retrieve only properties from base class and not from derived class.
How can i do to get derived class from order object using property "customerType"?
Thanks a lot

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.