Guide to Entity Framework with


The ObjectDataSource control



Download 11,91 Mb.
Pdf ko'rish
bet44/48
Sana30.03.2022
Hajmi11,91 Mb.
#517122
TuriGuide
1   ...   40   41   42   43   44   45   46   47   48
Bog'liq
Entity Framework Tutorial, Second Edition (1)

The ObjectDataSource control
The 
ObjectDataSource
control works
with in-memory collections. It defines 
properties like 
InsertMethod

DeleteMethod

UpdateMethod
, and 
SelectMethod

which perform basic data storage and retrieval operations. Appropriate methods 
must be created and mapped to the properties that perform the required task. When 
one of these properties is used, the 
ObjectDataSource
control actually creates an 
instance, invokes the appropriate method, and destroys as soon as it completes 
its execution phase. 
ObjectDataSource
are usually used in the business layer in 
your application, which helps you to directly bind to the data bound controls at the 
presentation layer.


Chapter 2
[
 45 
]
The SqlDataSource control
The 
SqlDataSource
control allows you to perform standard data operations, like 
insert, update, delete, and select on the data persisting in you relation database. 
The 
SqlDataSource
control is not meant only for the SQL Server database; it can 
work with any managed ADO.NET provider, which means that you can use the 
SqlDataSource
control with different relational data sources. The 
SqlDataSource
control defines properties like 
InsertCommand

DeleteCommand

UpdateCommand
, and 
SelectCommand
, for performing standard data operations, like insert, delete, update, 
and select, over the data. The command properties need appropriate queries to be set 
before using them. When updates are performed on a data control that connects to a 
SqlDataSource
control, the 
SqlDataSource
control creates update parameters for all 
columns, even though few columns are updated. The control also supports caching 
capabilities, which assist in improving the performance of the application. For further 
reading on this topic, please refer to this link: 
http://msdn.microsoft.com/en-us/
library/system.web.ui.webcontrols.sqldatasource(v=vs.110).aspx
.

Download 11,91 Mb.

Do'stlaringiz bilan baham:
1   ...   40   41   42   43   44   45   46   47   48




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish