Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've been looking at ways of hacking something together to populate the edmx with the meta data from the database.</p> <p>The summary and long description edmx properties are stored in elements under the EntityType element.</p> <pre><code>&lt;EntityType Name="EntityName"&gt; &lt;!-- Without this element classes are typically generated with "No Metadata Documentation available." --&gt; &lt;Documentation&gt; &lt;Summary&gt;Entity Summary&lt;/Summary&gt; &lt;LongDescription&gt;Entity Long Description&lt;/LongDescription&gt; &lt;/Documentation&gt; &lt;Key&gt; &lt;PropertyRef Name="Id" /&gt; &lt;/Key&gt; &lt;Property Name="Id" Type="String" Nullable="false" MaxLength="25" Unicode="false" FixedLength="true" /&gt; &lt;!-- Lots of other properties --&gt; &lt;/EntityType&gt; </code></pre> <p>The relevant section of the edmx file, the Store Schema Definition Language (SSDL), is created by <a href="http://msdn.microsoft.com/en-us/library/bb302474.aspx" rel="nofollow">System.Data.Entity.Design.EntityStoreSchemaGenerator.GenerateStoreMetadata()</a>. Or at least this is the case with EdmGen.</p> <p>I'm going to see if the <a href="http://msdn.microsoft.com/en-us/library/system.data.entity.design.entitystoreschemagenerator.storeitemcollection.aspx" rel="nofollow">EntityStoreSchemaGenerator.StoreItemCollection</a> can be modified before being used by EntityStoreSchemaGenerator.WriteStoreSchema(...) to output the XML.</p> <p><strong>Update</strong></p> <p>Well that was annoying. <a href="http://msdn.microsoft.com/en-us/library/system.data.metadata.edm.documentation.aspx" rel="nofollow">System.Data.Metadata.Edm.Documentation</a> is sealed and only has an internal constructor. Both properties of interest can only be set internally as well. So it seems like a dead end approach.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload