What is the difference between an ORM and an ODM?

后端 未结 4 1789
旧巷少年郎
旧巷少年郎 2020-12-22 15:09

I am trying to figure out what the difference is between ORM and ODM, as far as I understand the concept, ORM (Object Relational Mapper) maps the relations between data, whe

4条回答
  •  一个人的身影
    2020-12-22 15:26

    MySQL is an example of a relational database - you would use an ORM to translate between your objects in code and the relational representation of the data.

    Examples of ORMs are nHibernate, Entity Framework, Dapper and more...

    MongoDB is an example of a document database - you would use an ODM to translate between your objects in code and the document representation of the data (if needed).

    Mandango is an example of an ODM for MongoDB.

提交回复
热议问题