What is the difference between an ORM and an ODM?

后端 未结 4 1785
旧巷少年郎
旧巷少年郎 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:15

    An ORM maps between an Object Model and a Relational Database. An ODM maps between an Object Model and a Document Database. MySQL is not an ORM, it's a Relational Database, more specifically, a SQL Database. MongoDB is not an ODM, it's a Document Database.

提交回复
热议问题