中文字幕精品亚洲无线码二区,国产黄a三级三级三级看三级,亚洲七七久久桃花影院,丰满少妇被猛烈进入,国产小视频在线观看网站

EF架構~EF6配置需要(yao)注意的(de)幾個地(di)方(fang)

回到目錄

從EF5升(sheng)級(ji)到EF6之(zhi)后,可能會出現(xian)一些(xie)問題(ti),這是(shi)正常(chang)的(de)(de)(de),任何系(xi)統的(de)(de)(de)升(sheng)級(ji)都(dou)沒有一帆風(feng)順的(de)(de)(de),當然這些(xie)不是(shi)我(wo)要(yao)說的(de)(de)(de)重點,我(wo)真(zhen)正要(yao)說的(de)(de)(de)是(shi),當出現(xian)這些(xie)問題(ti)時,我(wo)們應(ying)該如何去應(ying)對它,下面我(wo)總結了幾個(ge)方面,請大家看(kan)一下

程序集

不需(xu)要(yao)應用托(tuo)管的System.Data.Entity了,可以和它說再見,以后EF移植更(geng)方便(bian)!

配置文件

需要(yao)表明EF版本(ben),如果你(ni)(ni)是vs2010或者vs2012的(de)用戶,你(ni)(ni)應該注意這一點

  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089
" requirePermission="false" /> </configSections>
 <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="v11.0" />
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>

以上兩(liang)點大家注意之后(hou),升級到EF6應該就沒什么問題了(le),呵呵。

回到目錄

posted @ 2014-12-04 14:57  張占嶺  閱讀(8687)  評論(11)    收藏  舉報