Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is OrmLite truly database agnostic?

I am new to Service Stack and OrmLite, and was exploring ORMLite as an alternative to Entity Framework. 2 questions I have about this: - The reason EF appeals to me is the ability to separate the database operations and the business data model into separate layers - EF can run with whatever you specify in the connection string of the config file. ORMLite seems to have different flavors for different databases, and that concerns me because I don't want to have to make code changes repeatedly.

Am I understanding things correctly? Please clarify

Thanks

Suraj

like image 218
Suraj Avatar asked Mar 14 '26 17:03

Suraj


1 Answers

OrmLite does support multiple database providers through the use of DialectProvider's.

Basically whenever some RDBMS's deviate from the norm and require special attention, than this functionality is factored out into a Dialect provider so it can provide bespoke functionality and the default behavior be overridden.

like image 129
mythz Avatar answered Mar 16 '26 10:03

mythz