亚洲3P视频,日韩BBW无码,亚洲制服麻豆网站,88re伊人,九草精品视频在线观看,国产精品久久夜,色青青狠狠色,无码熟女一区二区三区,日本一区二区成人网站

新聞建站cms系統(tǒng)、政府cms系統(tǒng)定制開發(fā)

廣州網(wǎng)站建設(shè)公司-閱速公司

asp.net新聞發(fā)布系統(tǒng)、報(bào)紙數(shù)字報(bào)系統(tǒng)方案
/
http://m.duxiu2008.cn/
廣州網(wǎng)站建設(shè)公司
您當(dāng)前位置:首頁>網(wǎng)站技術(shù)

網(wǎng)站技術(shù)

Consider using Code First Migrations to update the database

發(fā)布時(shí)間:2013/7/14 16:58:09  作者:Admin  閱讀:1576  

廣告:

解決方法:

說明實(shí)體類已經(jīng)有更新,但是數(shù)據(jù)庫還沒有更新過來,就會(huì)出現(xiàn)如下提示,請?jiān)贜uget控制臺輸入: Update-Database 相關(guān)指令更新數(shù)據(jù)庫與實(shí)體類同步。

The model backing the 'DataContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269). 說明: 執(zhí)行當(dāng)前 Web 請求期間,出現(xiàn)未經(jīng)處理的異常。請檢查堆棧跟蹤信息,以了解有關(guān)該錯(cuò)誤以及代碼中導(dǎo)致錯(cuò)誤的出處的詳細(xì)信息。

異常詳細(xì)信息: System.InvalidOperationException: The model backing the 'DataContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).

源錯(cuò)誤:

行 112:        {
行 113:            this.DataContext.Configuration.ProxyCreationEnabled = true;
行 114:            var value = dbset.Where(where).ToList();
行 115:            this.DataContext.Configuration.ProxyCreationEnabled = false;
行 116:            return value;

源文件: E:\aspnet2.0\yunyou2\Yunyou_N\TopWin.Etone.Infrastructure\Framework\RepositoryBase.cs 行: 114

堆棧跟蹤:

[InvalidOperationException: The model backing the 'DataContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269).]
   System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context) +350
   System.Data.Entity.Internal.<>c__DisplayClass8.<PerformDatabaseInitialization>b__6() +59
   System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +117
   System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() +279
   System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c) +31
   System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) +147
   System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) +276
   System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase() +112
   System.Data.Entity.Internal.InternalContext.Initialize() +42
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +34
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +124
   System.Data.Entity.Internal.Linq.InternalSet`1.GetEnumerator() +33
   System.Data.Entity.Infrastructure.DbQuery`1.System.Collections.Generic.IEnumerable<TResult>.GetEnumerator() +91
   System.Linq.WhereEnumerableIterator`1.MoveNext() +63
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +327
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
   TopWin.Etone.Infrastructure.Framework.RepositoryBase`1.GetMany(Func`2 where) in E:\aspnet2.0\yunyou2\Yunyou_N\TopWin.Etone.Infrastructure\Framework\RepositoryBase.cs:114
   TopWin.Etone.Data.UserRepository.FindByUserName(String UserName) in E:\aspnet2.0\yunyou2\Yunyou_N\TopWin.Etone.Data\Infrastructure\UserRepository.cs:32
   TopWin.Etone.Web.Controllers.AccountController.Login(LoginModel LoginModel) in E:\aspnet2.0\yunyou2\Yunyou_N\TopWin.Etone.Web\Controllers\AccountController.cs:57
   lambda_method(Closure , ControllerBase , Object[] ) +107
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +208
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +55
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +263
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +191
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8970349
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.272

廣告:

相關(guān)文章
Consider using Code First Migrations to update the database
cms新聞系統(tǒng)購買咨詢
掃描關(guān)注 廣州閱速軟件科技有限公司
掃描關(guān)注 廣州閱速科技
武强县| 萨嘎县| 谢通门县| 石台县| 茂名市| 平阴县| 丹东市| 扎赉特旗| 刚察县| 九江县| 晋宁县| 洪泽县| 肇庆市| 阿勒泰市| 丰城市| 梁山县| 沿河| 锡林浩特市| 玛纳斯县| 玛沁县| 南丹县| 丹凤县| 阳江市| 兰考县| 二手房| 宁明县| 唐山市| 平度市| 鹤庆县| 吉水县| 炉霍县| 顺昌县| 新安县| 西安市| 桃园县| 丁青县| 孟津县| 张家川| 兴国县| 循化| 崇明县|