Possible duplicate:Using ORM or plain SQL?
Would you decide to use ORM or some kind of house that was spun DAL? And why?
The advantages of ORM seem obvious - better structure / organization, better language, etc. But I'm worried about performance issues. Does anyone have stories about the war? Any ideas about less obvious risks or rewards will be greatly appreciated.
I would use ORM precisely for the reasons you mentioned.
. , SQL, , .
, .
, ORM ( L2SQL, Subsonic, EF NHibernate ..), DAL , sprocs.
ORM , , , , ORM, , , ORM - (N + 1 , ..).
( ) ORM , , .
; ORM / , . , .
, , ORM. , LINQ to SQL.
, , DAL , , .
, ORM. , SQL , . . , ... ORM , .
, , , SQL, ORM, raw_sql , .
, , , , IMHO ORM reaseon, , ( ) bounderies, , Query wethr, SQL HQL ANY_OTHER_SUTFF_QL,
, ORM, , ORM SAVE UPDATE DELETE
, - . , , .
, , , .
, , , , , .
I think it depends on what project you are working on. If you are programming using some OO language, it might be a good idea to use ORM. But if your project is lower-level or you really care about performance (I believe that a well-designed ORM will not give you poor performance), then direct sql might be the best choice.
Source: https://habr.com/ru/post/1771124/More articles:converting IP ranges to discrete ip numbers using bash / awk / sed - awkCountDownTimer: "Невозможно создать обработчик внутри потока, который не вызвал Looper.prepare()" - androidHow to use applyLinearImpulse based on rotation in Corona / Lua - luaBox2D b2World in class - c ++Является ли словарь добавлением пустых элементов в хранилище резервных копий? - dictionaryHow to change the value of an HTML element using javascript? - javascriptHow to add a primitive property to an existing Java storage object to throw an exception from a null pointer - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1771127/anyone-know-the-lifespan-of-a-facebook-api-access-token&usg=ALkJrhgohVtba8_rO4Ft4cGdZV7fsywxlASQL query to group data from two tables - sqlHelp check two words, and then print the cross, where the same characters are - javaAll Articles