Entity Framework framework generation summary document is empty (No metadata document is available) Bug Solution

Source: Internet
Author: User
Introduction

The. edmx file generated by Entity Framework in vs results in a bug with the abstract (description) being empty. The specific bug information is"No metadata document is available ."As a result, we cannot predict the meaning of the field representative when the table name is clicked, which is also fatal in development, because developers can only rely on experience and speculation to determine, the meaning of tables and fields, rather than intuitively knowing their purpose at the first time, has brought a lot of changes to development,The following is a solution to this bug:.

Purpose

Table and field Summary (description),

[For more information, see http://www.cnblogs.com/stone_w/archive/2012/10/18/2729475.html]

Bug Solution

Method:

1 use micro-soft open source project eftsqldocumentation.generator.exe, generate EF field abstract (description) document,: http://eftsqldocgenerator.codeplex.com/releases/view/69447,

2. After the download is completed, run the command line to access the binaryfolder and call the eftsqldocumentation.generator.exe command (the command is shown below) to generate the file,

Call the command:

 
Eftsqldocumentation.generator.exe-c "Connection database string"-I "XXX. edmx physical directory"

Instance:

 
Eftsqldocumentation.generator.exe-c "Data Source =.; initial catalog = db2012; user id = sa; Password = sa;"-I "E: \ db2012.edmx"

After eftsqldocumentation.generator.exe is called, refresh the edmx file. All the field summary documents have been generated.

 

End

The EF framework is good. I hope you can make good use of it. If you feel useful to you, click here for support. Thank you!

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.