Where is the line between DAL and ORM?

前端 未结 4 1219
庸人自扰
庸人自扰 2021-01-30 00:48

The terms are often thrown around interchangeably, and there\'s clearly considerable overlap, but just as often it seems implied that people see something strongly implied by sa

4条回答
  •  遇见更好的自我
    2021-01-30 01:45

    ORM = Object-Relational Mapping

    In an ORM, classes/objects in the application are mapped to database tables and operations for persistence, sometimes automagically.

    DAL = Data-Access Layer

    In a DAL, database operations are hidden behind a code facade.

    An ORM is a kind of DAL, but not all DALs are ORMs.

提交回复
热议问题