Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
what are steps to make entity relationship diagram ?



it,s very difficult to me create entity relationship diagraṃ erd and i know that there are steps to make it . so please help me to know it .
Posted

If you asked "I want to make entity-relationship diagram using this or that software tool", you could ask for some steps. But how can you say "there are steps to make it" it this is a while modeling method? No.

Learn about the method starting from its ideas (or rather starting from understanding relational model); and you will know the "steps", see http://en.wikipedia.org/wiki/Entity-relationship_diagram[^], http://en.wikipedia.org/wiki/Relational_model[^].

—SA
 
Share this answer
 
Right click your solution.
Add -> new Folder
Name the new folder "Database"
Right click the new folder.
add -> New Item
Choose: Data -> ADO.NET Entity data model.
Give the model a name.
Choose: emty EF designer model
finish

Right click in the new window (model.edmx)
Add new -> entity (this will be a table in the database)
Give it a name (person)
Right click the new entity
add new -> Scalar property
give it a name (personLastName)
In visual studio properties windows you can make changes to this new property
Type, nullable ....

Make a new Entity
Name it Address
add some Scalar properties. (street name, city ....)

Now for connecting the two entities:
Right click the address entity.
Add new -> Association
(We will presume a person can none or multiple addresses, but a address must/can have only one person)

entity address:
Multiplicity *many
navigation property person

entity person
Multiplicity 0..1 (zero or one)
navigation property addresses (you have to change the text from address yourself)

Click: add foreign key properties to .....

If you read the text below all this, it clearly states what you are creating, this helps allot.

If you are ready, right click in the window (model.edmx) and click Generate database from model.
Follow the steps, and create your database with the newly created sql file.

Good luck.
 
Share this answer
 
1. Identify data objects (entities) about which the system needs to store data.
2. For each entity, list its attributes and check the attributes for completeness. Mark the PK and FK, if any
3. Draw a line to show relationship and label it using a verb
4. Add relationship type (1-1, 1-many, many-many)
5. Add the participation constraint (optional or mandatory) to the relationship shown
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900