Guide to Entity Framework with



Download 11,91 Mb.
Pdf ko'rish
bet25/48
Sana30.03.2022
Hajmi11,91 Mb.
#517122
TuriGuide
1   ...   21   22   23   24   25   26   27   28   ...   48
Bog'liq
Entity Framework Tutorial, Second Edition (1)

[
 17 
]
The Object Model layer contains .NET objects and a collection of .NET objects, types, 
properties, and methods. You can use the Object Model or the O-Space Model to 
query your business objects, or the collections of your business objects, using LINQ 
to Entities or Entity SQL. The C-Space and O-Space models are actually mapped by 
the O-C Mapping Layer using code attributes applied to the O-Space Model.
LINQ to Entities
LINQ is a query translation pipeline that has been introduced as part of the C# 
3.0 library. It comprises a set of query operators for different data sources (LDAP, 
objects, CSV, XML, entities, SQL, and so on). It is an extension of the C# language 
(it's actually a series of extension methods) and provides a simplified framework to 
access relational data in a strongly typed, object-oriented manner.
LINQ to Entities is a Microsoft technology that enables you to query your business 
objects from within the language in a strongly typed manner. You can use LINQ to 
Entities, a superset of LINQ to SQL, to query data against a conceptual data model, 
namely, the 
Entity Data Model. You will learn 
more about LINQ and LINQ to 
Entities in 
Chapter 6

Working with LINQ to Entities
.
Here is an example of a typical LINQ to Entities query:
AdventureWorksEntities ctx = new AdventureWorksEntities();
var query = from e in ctx.Employees
select e;
foreach (var employee in query)
Console.WriteLine (employee.EmployeeID);
LINQ to Entities rests on top of Entity Framework's Object 
Services Layer and the LINQ to Entities queries are internally 
translated to canonical query trees. This, in turn, gets converted 
internally to corresponding SQL queries in a form expected by 
your underlying database.
Entity Client
The Entity Framework allows you to write programs against the EDM and also add 
a level of abstraction on top of the relational model. This isolation of the logical view 
of data from the Object Model is accomplished by expressing queries in terms of 
abstractions using an enhanced query language called Entity SQL.


Introducing the ADO.NET Entity Framework

Download 11,91 Mb.

Do'stlaringiz bilan baham:
1   ...   21   22   23   24   25   26   27   28   ...   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