Dab tsi yog hom complex hauv Entity Framework?
Dab tsi yog hom complex hauv Entity Framework?

Video: Dab tsi yog hom complex hauv Entity Framework?

Video: Dab tsi yog hom complex hauv Entity Framework?
Video: Leng Yang - Yob Vim Dab Tsi (Cover) by Yami Lee 2024, Kaum ib hlis
Anonim

Cov Hom complex yog cov khoom tsis-scalar ntawm yam hom uas ua kom cov khoom scalar tau teeb tsa hauv cov koom haum . Nws tuaj yeem tsuas muaj nyob raws li cov khoom ntawm yam hom los yog lwm yam hom complex . Nws tsis tuaj yeem koom nrog cov koom haum thiab tsis tuaj yeem muaj cov cuab yeej navigation. Hom complex khoom tsis tuaj yeem yog null.

Hais txog qhov no, kuv yuav ua li cas thiaj tsim tau ib hom kev nyuaj hauv Entity Framework?

Right-click ib qhov chaw , taw tes rau Ntxiv Tshiab, thiab xaiv nyuaj Khoom. A hom complex cov cuab yeej nrog lub npe default yog ntxiv rau qhov chaw . Lub neej ntawd hom (xaiv los ntawm cov uas twb muaj lawm hom complex ) yog muab rau cov cuab yeej. Muab qhov xav tau hom mus rau cov khoom nyob rau hauv lub qhov rais Properties.

Tsis tas li ntawd, tus qauv qauv yog dab tsi? Cov Qhov chaw Cov ntaub ntawv Qauv (EDM) yog ib qho txuas ntxiv ntawm cov Qhov chaw - Kev sib raug zoo qauv uas qhia txog lub tswvyim qauv ntawm cov ntaub ntawv siv ntau yam qauv qauv. Nws kuj yog hais txog cov txheej txheem uas piav txog cov qauv ntaub ntawv, tsis hais nws daim ntawv khaws cia.

Raws li txoj cai, muaj pes tsawg hom Entity Framework muaj?

Muaj ob hom ntawm cov koom haum hauv Lub Koom Haum Ua Haujlwm : POCO Cov koom haum thiab Dynamic Proxy Cov koom haum.

Entity Framework yog dab tsi hauv. NET nrog piv txwv?

Lub Koom Haum Ua Haujlwm yog qhov chaw qhib ORM lub moj khaum rau. NET cov ntawv thov txhawb los ntawm Microsoft. Nws ua rau cov neeg tsim khoom ua haujlwm nrog cov ntaub ntawv siv cov khoom ntawm cov chav kawm tshwj xeeb yam tsis tau tsom mus rau cov lus hauv qab database thiab txhua kab uas cov ntaub ntawv no khaws cia.

Pom zoo: