Guide to Entity Framework with


Choose Your Database Objects and Settings



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

Choose Your Database Objects and Settings
window that is shown next:
Choosing the database objects to be used in the model


Getting Started
[
 40 
]
We will select all the tables of the 
Security
database now. Refer to the 
following screenshot:
Selecting the Database Objects
11. Lastly, click on 
Finish
to generate the EDM for the 
Security
database.
Your EDM has been generated and saved in a file named 
SecurityDB.edmx
. We are 
done creating our first EDM using the ADO.NET Entity Data Model Designer tool.


Chapter 2
[
 41 
]
When you open 
SecurityDB.edmx
that we just created in the designer view, it will 
appear as shown in the following image:
The SecurityDB Entity Data Model
In the next section, we will learn to create an EDM using the 
EdmGen.exe
command-
line tool.
Creating Entity Data Model using the
EdmGen tool
We will now take a look at how to create a data model using the EDM generation 
tool called 
EdmGen
.
The 
EdmGen.exe
command-line tool can be used to do one or more of the following:
• 
Generate the 
.cdsl

.msl
, and 
.ssdl
files as part of the EDM
• 
Generate object classes from a 
.csdl
file
• 
Validate an EDM


Getting Started
[
 42 
]
The 
EdmGen.exe
command-line tool generates the EDM as a set of three files: 
.csdl

.msl
, and 
.ssdl
. If you have used the ADO.NET Entity Data Model Designer to 
generate your EDM, the 
.edmx
file generated will contain the CSDL, MSL, and the 
SSDL sections. You will have a single 
.edmx
file that bundles all of these sections into 
it. On the other hand, if you use the 
EdmGen.exe
tool to generate the EDM, you will 
find three separate files with 
.csdl

.msl
, or 
.ssdl
extensions.
Here is a list of the major options of the 
EdmGen.exe
command-line tool:

Download 11,91 Mb.

Do'stlaringiz bilan baham:
1   ...   37   38   39   40   41   42   43   44   ...   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