Friday, October 11, 2019

Class diagram, Entity relationship diagram ,Layer Diagrams, Code Maps



Class Diagram


  • Goto Class View and right-click --> View --> view class diagram
  • Select all typeson the diagram by pressing Ctrl+A
  • Expand all types by pressiong the “+” key on the numeric keypad
  • Right-click on the diagram and select Adust shapes width
  • Right-click on the diagram and select Layout Diagram
  • Right-click on the diagram and select Export diagram as image


Entity Relationship Diagram

 entity relationship diagram. It was tested in VS2012
  1. Open Visual Studio
  2. Create a project or open an existing project (must be Visual Basic, Visual C# project, or Console Application)
  3. Right-click the project and choose Add -> New Item…
  4. Under Visual C# Items select “Data”
  5. Select the template “ADO.NET Entity Data Model”
  6. Give it a name and click “Add”
  7. Select “Generate from database” or “Empty model”
  8. If “Generate from database” selected enter connection info, choose the database objects and done!

The model is stored as a “.edmx” file.


Layer Diagram

Create and drag projects

Code Maps

Create and drag projects

Sequence Diagram

Removed from newer version of visual studio

Encrypt/Decrypt the App.Config

Program.cs using System; using System.Diagnostics; using System.IO; namespace EncryptAppConfig {     internal class Program     {         pr...