Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Entity Framework (Code First or not) does not support mapping to a field; only to properties.</p> <p><strong>UPDATE</strong> As pointed out in the comments, these documents are a bit dated but might still help any beginner along:</p> <blockquote> <p><a href="https://stackoverflow.com/questions/3803610/entity-framework-code-first-development-resources-and-documentation/3805975#3805975">Entity Framework Code first development Resources and Documentation</a></p> </blockquote> <p>For the sake of completeness, heres a link to whats included in EF 4.1 RC: <a href="http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-release-candidate-available.aspx" rel="nofollow noreferrer">EF 4.1 Release Candidate Available</a></p> <p>Changes since CTP5 (From the link above):</p> <blockquote> <ul> <li><p><strong>Rename of ‘DbDatabase’</strong> to ‘Database’. This class has also moved to the ‘System.Data.Entity’ namespace, along with the database initializer classes.</p></li> <li><p><strong>Rename of ‘ModelBuilder’</strong> to ‘DbModelBuilder’, to align with the other core classes.</p></li> <li><p><strong>Validation in Model First and Database First.</strong> The new validation feature was only supported in Code First in CTP5. In RC the validation feature will work with all three development workflows (Model First, Database First, and Code First).</p></li> <li><p><strong>Complete Intellisense docs.</strong> Feature CTPs were not extensively documented because the API surface was changing significantly between each release. This release includes complete documentation.</p></li> <li><p><strong>Removal of Code First Pluggable Conventions.</strong> Pluggable Conventions were previewed in Feature CTP5 but were not at go-live quality for this release. This release still supports the removal of default conventions.</p></li> <li><p><strong>Consolidation of IsIndependent</strong> in the Code First relationship API. When configuring relationships in Feature CTP5 the IsIndependent method was used to identify that the relationship did not have a foreign key property exposed in the object model. This is now done by calling the Map method. HasForeignKey is still used for relationships where the foreign key property is exposed in the object model.</p></li> </ul> </blockquote>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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