Why mapping is not working using Entity Framework in visual studio 2015 professional

前端 未结 1 514
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 05:10

I have created a context of Entity Framework like below: using System;

 using System.Data.Entity;
 using System.Data.Entity.ModelConfiguration.Conventions;
 us         


        
相关标签:
1条回答
  • 2021-01-25 05:34

    Try this, Go to Web config, search for

     <entity framework>
    

    Add this

    <contexts>
     <context type="UniversityApp.Models.ProfDb , UniversityApp">
      <databaseInitializer type="Your SEED , UniversityApp" />
    </context>
    

    0 讨论(0)
提交回复
热议问题