Guide to Entity Framework with



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

[
 14 
]
Let's explain each of these layers in detail:
• 
The Conceptual Layer or the C-Space Layer is responsible for defining 
the entities and their relationships. It defines your business objects and 
their relationships in XML files. The C-Space is modeled using CSDL and 
comprises EntityContainer, EntitySets, AssociationSets, AssociationTypes, 
EntityTypes, and functions. You can query this layer using Entity SQL or 
ESQL (EntityConnection, EntityCommand, and EntityDataReader).
• 
The C-S Mapping Layer is responsible for mapping the conceptual and the 
logical layers. That is, it maps the business objects and the relationships 
defined in the conceptual layer with the tables and relationships defined 
in the Logical layer. It is a mapping system created in XML, which links 
or maps the conceptual and the Logical layers. The C-S Mapping Layer is 
modeled using Mapping Storage Layer or the MSL.
• 
The Logical or the Storage Layer (also called the S-Space) represents the 
schema of the underlying database. This comprises tables, stored procedures, 
views, and functions. It is modeled using SSDL and queried using the 
database providers. A database provider is an API to connect to and perform 
CRUD operations against a database. As an example, if the database in use 
is SQL Server, the ADO.NET data provider for SQL Server will be used. 
Hence, we use SQLConnection, SQLCommand, SQLDataReader, and 
SQLDataAdapter using T-SQL or PL-SQL if our data store is a SQL database.


Chapter 1
[
 15 
]
Here is what a typical EDM looks like:
Designation
Employee
ProvidentFund
Salary
Department
Properties
Properties
Properties
Properties
Properties
Properties
Properties
Properties
Properties
Properties
Employees
Employees
Employee
Employee
PFID
EmployeeID
PFAmount
SalaryID
EmployeeID
Basic
Allowance
PFID
Tax
GrossSalary
NetSalary
EmployeeID
FirstName
LastName
Address
Phone
DepartmentID
JoiningDate
LeavingDate
DesignationID
PFID
Department
Designation
ProvidentFunds
Salaries
DepartmentID
DepartmentName
DepartmentID
DepartmentName
1
*
1
*
1
*
1
*
An ADO.NET Entity Data Model at a glance

Download 11,91 Mb.

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