随笔分类 - 问题及解决方案
遇到值得思考的问题,以及找到值得参考的解决方案
摘要:使用EF的时候映射数据的时候,出现了下面的问题。如图:错误的提示为:Model compatibility cannot be checked because the database does not contain model metadata.Model compatibility can only be checked for databases created using Code First or Code First Migrations.解决方法:USE [master]GO/****** Object: Database [DBname] ******/ ALTER DATA
阅读全文
摘要:我的代码:userController中的登录方法中:Boolean result= _userService.ValidUser(userName, pwd, out msg); if (result && msg == string.Empty) { Session["isLogin"] = "True"; return RedirectToAction("Index", "Manage"); } else { ...
阅读全文
摘要:问题:如何设置保存TFS登录名和密码,不用每次连接tfs都要输用户名和密码?解决方案:在 控制面板》用户帐户》凭据管理器 里面创建自己TFS凭据保存起来就可以了。例如tfs.domain.comtt@domain.com123456这样每次启动VS连接TFS就不用输入用户名密码了,很方便。
阅读全文
摘要:Datepicker是jQuery UI的一个配置灵活的日期选择插件。今天写了个实例改变特定日期中样式:<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&
阅读全文

浙公网安备 33010602011771号