Entity Framework and MongoDb

Is it possible that the Entity Framework supports the MongoDb database? Maybe someone will write an EF MongoDb Provider?

+49
mongodb orm entity-framework
Jul 23 '11 at 4:50
source share
5 answers

The short answer is no, it is probably possible, but not reasonable.

MongoDB is a document database and does not support any physical relationship between collections. EF is well suited for relational databases such as SQL, MySQL, etc. MongoDB works faster with embedded documents. So these are just two different approaches.

+47
Jul 23 '11 at 6:30 a.m.
source share
— -

Check out the latest C # MongoDB library .... supports LINQ!

http://www.mongodb.org/display/DOCS/CSharp+Driver+LINQ+Tutorial

+31
May 10 '12 at 16:59
source share

I am a big fan of the entity structure, so when I first tried mongoDb, I created a library called "MongoDB.Dynamic" that has an approach next to EF Code First. MongoDB physically has no relationship between collections, but you can mimic it. MongoDB.Dynamic has a feature known as Eager Loading that automatically adjusts the relationship between collections and documents related to loading if the object has a conditional structure. You can try reading some documentation on MongoDB.Dynamic

+7
Jun 05 2018-12-12T00:
source share

Online, RSSBus seems to have created the MongoDBProviderServices dll, which can be used with entity framework 6.

http://cdn.rssbus.com/help/DG1/ado/pg_ef6.htm

The link has a tutorial on how to implement it.

+2
Nov 14 '15 at 10:42
source share

I do not suggest using an old version of the MongoDb provider that uses LINQ. Best and Stable C # Driver MongoDb is the official MongoDb 2.0 driver for C #, which uses Builders mechanics.

The LINQ conditional driver has many limitations with an inconvenient and slow insertion insertion mechanism.

0
Jan 19 '16 at 14:10
source share



All Articles