实体框架和MongoDb [英] Entity Framework and MongoDb
本文介绍了实体框架和MongoDb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
实体框架是否有可能支持MongoDb数据库?也许有人会编写EF MongoDb提供程序?
Is it possible that Entity Framework supports MongoDb database? Maybe somebody will write a EF MongoDb Provider?
推荐答案
简短的回答-不,这肯定有可能,但并不合理.
Short answer - no, it's for sure possible, but not reasonable.
MongoDB是文档数据库,不支持集合之间的任何物理关系. EF非常适合关系数据库(如SQL,MySQL等).MongoDB处理嵌入式文档的速度更快.因此,这只是两种不同的方法.
MongoDB is document database and not support any physical relations between collections. EF is a good fit for relational databases like SQL, MySQL, etc. MongoDB works faster with embedded documents. So it's just two different approaches.
这篇关于实体框架和MongoDb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文