Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongodb orm/odm in .net?

Tags:

c#

orm

mongodb

So, I set out to start using mongodb instead of sql server in my new app. One of the nice things I had going for me, while using sql server was having an ORM layer such as entity framework or DevExpress XPO. I have heard of NoRM for mongo, but I looked at the GitHUB site, it says that it is no longer maintained. So I was wondering if someone knows of a currently maintained ORM/ODM type solution I could use with C# .NET app to encapsulate my model classes interactions with the persistence layer.

like image 942
Eugene Goldberg Avatar asked Apr 17 '14 21:04

Eugene Goldberg


Video Answer


1 Answers

It would be a mistake to think about Mongo the same way as SQL. Think of Mongo as a way to persist your c# models. Construct=>Save->Fetch all the data you need to display should go into the Model. Then use your collection.FindAs<ModelType>(SomeQuery) to get them from the db.

like image 124
user2391759 Avatar answered Oct 13 '22 00:10

user2391759