Open cocowalla opened 8 years ago
client does not doesn't support polymorphism yet, but like _t discriminator field
in mongodb, client have a '$type' filed that is supported by json.net for the polymorphism, it is used now for serializing derived/interface class members(wont work for your scenario which you need it for collections) .so it could be done with a few wrappers. i will work on it this week and inform you here when the implementation is done.
Superb, thanks!
Have you got any further forward with this?
sorry about the delay, no i did not but i will as soon as i add support for the .NET CORE
Is this still been worked on?
I can't see any way to work with class hierarchies.
For example, let's say I had an
Animal
class, andDog
andCat
subclasses. Working with MongoDB I'd create anAnimal
collection, then I would insertDog
andCat
instances and a type discriminator field would automatically be added. I could then use Linq's.OfType<Dog>
to query specifically on dogs, for example.AFAICS, arangoclient doesn't support polymorphism?