Dab tsi yog kev siv DataTable hauv asp net?
Dab tsi yog kev siv DataTable hauv asp net?

Video: Dab tsi yog kev siv DataTable hauv asp net?

Video: Dab tsi yog kev siv DataTable hauv asp net?
Video: Kev Ntseeg Yog Dabtsi Tiag (What Faith Really Is) | Zaj 2 | Kx. Ntxoov Lis Yaj 2024, Kaum ib hlis
Anonim

DataTable sawv cev cov ntaub ntawv sib txheeb rau hauv daim ntawv tabular. ADO. NET muab ib DataTable chav kawm tsim thiab siv cov ntaub ntawv ywj siab. Nws kuj tuaj yeem ua tau siv nrog DataSet kuj. Thaum pib, thaum peb tsim DataTable , nws tsis muaj rooj schema.

Khaws qhov no hauv kev txiav txim siab, dab tsi yog kev siv DataTable?

Lub DataSet yog tsim los ntawm cov ntawv sau, kev sib raug zoo, thiab kev txwv. Hauv ADO. NET, DataTable cov khoom yog siv los sawv cev rau cov ntxhuav hauv DataSet. A DataTable sawv cev rau ib lub rooj ntawm cov ntaub ntawv hauv nco; cov ntaub ntawv yog nyob rau hauv lub zos.

Ib yam li ntawd, kev siv DataSet hauv asp net yog dab tsi? A DataSet yog ib lub thawv rau ib lossis ntau dua DataTable cov khoom uas muaj cov ntaub ntawv koj muab los ntawm cov ntaub ntawv. Peb tuaj yeem teeb tsa Cov Ntaub Ntawv Kev Sib Raug Zoo ntawm cov rooj no nyob rau hauv DataSet . DataAdapter Object tso cai rau peb los sau DataTables hauv ib DataSet.

Kuj paub, DataTable hauv C # yog dab tsi?

A DataTable khoom sawv cev rau tabular cov ntaub ntawv raws li ib tug nyob rau hauv-nco, tabular cache ntawm kab, kab, thiab constraints. Koj feem ntau siv cov DataTable chav kawm ua ib qho kev sib txuas cov ntaub ntawv nkag. Cov DataTable yog ib qho khoom tseem ceeb hauv lub tsev qiv ntawv ADO. NET. Lwm yam khoom uas siv cov DataTable suav nrog DataSet thiab DataView.

Dab tsi yog qhov txawv ntawm DataTable thiab DataSet hauv asp net?

1) A DataTable yog ib lub cim xeeb sawv cev ntawm ib lub rooj database uas muaj kev sau cov kab thiab kab thaum a DataSet yog ib tug nyob rau hauv-nco sawv cev ntawm ib tug database-zoo li cov qauv uas muaj sau los ntawm Cov ntaub ntawv . 6) Ib DataTable , DataSource tsis tuaj yeem raug serialized. Tab sis DataSet yog serialized DataSource.

Pom zoo: