#1 2021-04-28 02:39:32

keinn
Member
Registered: 2014-10-20
Posts: 103

why is the orm part coupped with restserver?

is there a way to use the orm without restserver or restclient or any rest*?
just wanna to use the orm direct

Last edited by keinn (2021-04-28 02:45:24)

Offline

#2 2021-04-28 07:52:08

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: why is the orm part coupped with restserver?

Use mORMot2 (in test state) instead: https://github.com/synopse/mORMot2


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#3 2021-04-28 12:29:45

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: why is the orm part coupped with restserver?

Note that even in mORMot 2, the IRestOrm interface doesn't exist without a TRest class instance, which owns it.
Our ORM is a RESTful ORM, not a data-only ORM.

On mORMot 1, just use a TSQLRest class.
Thanks to the Lizkov Substitution Principle, you will find in TSQLRest the abstract ORM methods needed for basic persistence work.

Offline

Board footer

Powered by FluxBB