Domanda

Are there any NoSQL DBs that support object inheritance in .NET out of the box? MongoDB has something which is proper for dynamic languages but I'm looking for real inheritance. Actually I think I should work on an ODBMS instead of NoSQL!? Or does MongoDB support strongly-typed inheritance?

I would like to get data using such queries in LINQ:

people.Where(p => p is Student)
È stato utile?

Soluzione 2

Altri suggerimenti

RavenDB has something similar to what you want to do.

http://ravendb.net/docs/client-api/querying/polymorphism

Starcounter uses the regular classes you program to store in the database, so you need no separate database definition. The database and the application are married together so all objects you query/work with are the actual .NET objects. Still true ACID.

You query the database using regular SQL92 expressions (Linq is to slow) like this: Db.SQL("SELECT s FROM MyClass WHERE ...") and the returned enumerator contains your .NET objects.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top