Entity Framework and MongoDb

前端 未结 6 1128
孤城傲影
孤城傲影 2021-02-01 12:18

Is it possible that Entity Framework supports MongoDb database? Maybe somebody will write a EF MongoDb Provider?

6条回答
  •  青春惊慌失措
    2021-02-01 12:51

    Short answer - no, it's for sure possible, but not reasonable.

    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.

提交回复
热议问题