Is an ORM redundant with a NoSQL API?
Posted
by Earlz
on Stack Overflow
See other posts from Stack Overflow
or by Earlz
Published on 2010-04-22T19:59:29Z
Indexed on
2010/04/22
20:13 UTC
Read the original article
Hit count: 272
Hello, with MongoDB (and I assume other NoSQL database APIs worth their salt) the ways of querying the database are much more simplistic than SQL. There is no tedious SQL queries to generate and such. For instance take this from mongodb-csharp:
using MongoDB.Driver;
Mongo db = new Mongo();
db.Connect(); //Connect to localhost on the default port.
Document query = new Document();
query["field1"] = 10;
Document result = db["tests"]["reads"].FindOne(query);
db.Disconnect();
How could an ORM even simplify that? Is an ORM or other "database abstraction device" required on top of a decent NoSQL API?
© Stack Overflow or respective owner