Cov txheej txheem:

Qhov tseeb version ntawm Entity Framework yog dab tsi?
Qhov tseeb version ntawm Entity Framework yog dab tsi?

Video: Qhov tseeb version ntawm Entity Framework yog dab tsi?

Video: Qhov tseeb version ntawm Entity Framework yog dab tsi?
Video: qhov tseeb ua Vam Tshaj Thoj tuag. 2024, Kaum ib hlis
Anonim

EF 6

Hauv qhov no, qhov tseeb version ntawm Entity Framework Core yog dab tsi?

Nthuav lub Ncej Core (EF Core ) yog qhov tseeb version ntawm Lub Koom Haum Ua Haujlwm los ntawm Microsoft. Nws tau raug tsim los ua lub teeb yuag, txuas ntxiv thiab txhawb nqa hla kev txhim kho platform raws li ib feem ntawm Microsoft's. NET Core moj khaum.

Qhov thib ob, Dab tsi yog Qhov Chaw Ua Haujlwm Hauv C #? ADO. NET Lub Koom Haum Ua Haujlwm yog Object/Relational Map (ORM) lub moj khaum uas enables developers ua hauj lwm nrog relational database. Siv cov Lub Koom Haum Ua Haujlwm , cov neeg tsim tawm teeb meem cov lus nug siv LINQ, tom qab ntawd muab thiab tswj cov ntaub ntawv raws li cov khoom siv tau zoo siv C# los yog VB. Net.

Ib yam li ntawd, kuv yuav hloov kho qhov chaw ua haujlwm li cas?

Koj yuav tsum tau hloov kho mus rau qhov tshiab Entity Framework 6 runtime

  1. Right-click rau koj qhov project thiab xaiv Tswj NuGet Pob
  2. Hauv Online tab xaiv EntityFramework thiab nyem Nruab. Yog tias yav dhau los version ntawm EntityFramework NuGet pob tau teeb tsa qhov no yuav hloov kho nws mus rau EF6.

Puas yog Dapper zoo dua li Entity Framework?

Dapper piav qhia nws tus kheej li "micro-ORM" vim tias nws muab kev ua haujlwm tsawg dua dua li Entity Framework ua. Nws tseem suav tias yog ORM, txawm li cas los xij, vim Dapper tso cai rau koj rov qab tau qhov chaw cov khoom los ntawm cov rooj sib txheeb. Yog Dapper proves nrov txaus, koj yuav tsum cia siab tias ntau extension qiv kom tshwm.

Pom zoo: