Recently in the graduation design, began to use Visio painting system-related diagram, today ready to draw the E-R diagram of the system database, found that Visio does not have this template available, because it is a newbie, I haven't found it for a long time. Then I searched for it on hundreds of times and found that I had to manually add it. First, I found the diamond and square in "flowchart"> "Basic flowchart, right-click and choose "add to my shape"> "add to New Mold ". Then the "Save as" dialog box appears, name the new mold as "E-R diagram", so we add the diamond and square to the new mold "E-R diagram. In the same way, find the elliptic and straight lines in "Database"-> "ORM Chart" and add them to the "E-R Chart" of the mold. After adding, you can open the mold when drawing a E-R chart, all the elements of the E-R chart will be displayed in a mold.
The above method basically solved the trouble of drawing a E-R diagram in Visio, but it seems to be a little less, I found that the mold is now missing a can indicate the object contact type (1: 1, 1: N or M: N. Therefore, the "Frequency Constraint" in "Database"> "ORM Chart" is a small rectangle without borders and is suitable for marking the contact type, add it to the "E-R Chart" mold, so that it is more convenient to draw a E-R diagram later.
Temporarily So solve the problem of drawing E-R diagram, do not know there is no better way, if you have a better way please leave your solution, thank you!