我们可以将MongoDB与我们以前用于关系数据库的ORM一起使用,例如linq2sql,实体框架,亚音速,......?

时间:2021-12-31 16:12:32

I want to know if its possible based on your experience to use our previous experiences using .net ORMs with nosql db such as MongoDB.
And also if you know samples doing this please refer in your answer.

我想知道是否可以根据您的经验使用我们以前使用.net ORM与nosql db(如MongoDB)的经验。如果你知道这样做的样品,请参考你的答案。

1 个解决方案

#1


4  

You can reuse your LINQ skills because the two providers between .net and MongoDB support LINQ. Both the norm driver and the mongodb-csharp-driver support LINQ queries.

您可以重用LINQ技能,因为.net和MongoDB之间的两个提供程序支持LINQ。 norm驱动程序和mongodb-csharp驱动程序都支持LINQ查询。

See http://www.mongodb.org/display/DOCS/C+Sharp+Language+Center

Mapping an object to a document is most of the time easier than mapping an object to a set of tables. But you can't reuse all your previous experiences because a document db and a relational db are very different. But isn't it fun to explore a new "world"?

将对象映射到文档在大多数情况下比将对象映射到一组表更容易。但是您无法重复使用以前的所有经验,因为文档数据库和关系数据库非常不同。但探索新的“世界”并不是一件有趣的事吗?

#1


4  

You can reuse your LINQ skills because the two providers between .net and MongoDB support LINQ. Both the norm driver and the mongodb-csharp-driver support LINQ queries.

您可以重用LINQ技能,因为.net和MongoDB之间的两个提供程序支持LINQ。 norm驱动程序和mongodb-csharp驱动程序都支持LINQ查询。

See http://www.mongodb.org/display/DOCS/C+Sharp+Language+Center

Mapping an object to a document is most of the time easier than mapping an object to a set of tables. But you can't reuse all your previous experiences because a document db and a relational db are very different. But isn't it fun to explore a new "world"?

将对象映射到文档在大多数情况下比将对象映射到一组表更容易。但是您无法重复使用以前的所有经验,因为文档数据库和关系数据库非常不同。但探索新的“世界”并不是一件有趣的事吗?