Guide to Entity Framework with


Support for persistence ignorance



Download 11,91 Mb.
Pdf ko'rish
bet30/48
Sana30.03.2022
Hajmi11,91 Mb.
#517122
TuriGuide
1   ...   26   27   28   29   30   31   32   33   ...   48
Bog'liq
Entity Framework Tutorial, Second Edition (1)

Support for persistence ignorance
Support for persistence ignorance was introduced in Entity Framework 4.0. 
Persistence ignorance, as the literal meaning implies, is a concept that enables you to 
build your applications in a way that can just ignore the underlying data store in use. 
In essence, you can build applications that can have different persistent technology 
in future.
You can now create your own 
Plain Old CLR Objects
(commonly known as 
POCO

that are decoupled from any specific persistence technology. To provide support for 
POCO, all you need to do is just turn off code generation in the model in your Visual 
Studio 2013 IDE.
You can simply clear the values of the 
Custom Tool
property of your EDM and save 
it again. Once you have done this, you have to create your own custom object context 
by deriving your custom object context class from the 
ObjectContext
class. Then 
you can define the data members and properties in your custom object context class 
as per your needs.


Chapter 1
[
 23 
]
Support for T4 code generation
T4 is a code generation technology that was introduced in Visual Studio 2008. T4 
templates not only give you advantage to customize the generated code, they also 
generate less code, concealing a lot of redundant functions that were present in the 
old generated code. Entity Framework 6 provides support for T4 code-generation 
templates. You can also customize these templates as needed.
Support for lazy loading
Lazy loading is a concept that enables an entity to be loaded late— it's loaded on 
demand actually. Entity Framework 6 provides better support for lazy loading. To 
enable deferred loading (it is turned off by default), you should make use of the 

Download 11,91 Mb.

Do'stlaringiz bilan baham:
1   ...   26   27   28   29   30   31   32   33   ...   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