08 2013 档案
ASP.NET返回Json数据
摘要:Schedule.ashx:using System;using System.Data;using System.Text;using System.Web;using System.Web.Script.Serialization;public class Schedule : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "application/json;charset=utf-8"; //Java... 阅读全文
posted @ 2013-08-30 14:59 cw_volcano 阅读(2034) 评论(0) 推荐(0)
OnClientClick事件
摘要:1.OnClientClick="return validation()" //注意return2.//默认情况下返回truefunction validation() { if ($('#txtStartDate').val() == "" || $('#txtStartTime').val() == "" || $('#txtEndDate').val() == "" || $('#txtEndTime').val() == "" 阅读全文
posted @ 2013-08-29 15:49 cw_volcano 阅读(254) 评论(0) 推荐(0)
Reason: Server is in single user mode. Only one administrator can connect at this time
摘要:单击Start→All Programs→MicrosoftSQLServer 2008→Configuration Tools→SQLServer Configuration Manager.右键单击面板右边的SQLServer ,然后在下拉菜单中选择Properties ,在SQLServer Properties 界面上,单击Advanced 选项卡。删除“;-m”,如下图所示,保存,重启SQL Server。 阅读全文
posted @ 2013-08-21 17:12 cw_volcano 阅读(1013) 评论(0) 推荐(0)
在Code First中使用Migrations对实体类和数据库做出变更
摘要:在Code First中使用Migrations对实体类和数据库做出变更,Mirgration包含一系列命令。 工具--库程序包管理器--程序包管理器控制台 运行命令:Enable-Migrations启用Code first Migration 运行成功后会产生两个类:Configuration.cs 和_InitialCreate.cs,这是一个用时间戳作为前缀的类。如201212310201487_InitialCreate.cs 然后更改实体类Blog,增加一个属性Url public class Blog { public int BlogId { get; s... 阅读全文
posted @ 2013-08-20 10:54 cw_volcano 阅读(346) 评论(0) 推荐(0)
关于.ToList(): LINQ to Entities does not recognize the method ‘xxx’ method, and this method cannot be translated into a store expression.
摘要:LINQ to Entities works by translating LINQ queries to SQL queries, then executing the resulting query on the database and converting the result back to application entities. Because of this crossover of two languages, it will only work when SQL-compatble method calls are made. When an incompatible c 阅读全文
posted @ 2013-08-06 18:42 cw_volcano 阅读(446) 评论(0) 推荐(0)
VS发布,TFS邮件设置截图
摘要:vs2012发布截图:TFS邮件设置截图: 阅读全文
posted @ 2013-08-05 11:12 cw_volcano 阅读(263) 评论(0) 推荐(0)
Code generated using the T4 templates for Database First
摘要:Error message:Code generated using the T4 templates for Database First and Model First development may not work correctly if used in Code First mode. To continue using Database First or Model First ensure that the Entity Framework connection string is specified in the config file of executing applic 阅读全文
posted @ 2013-08-01 20:46 cw_volcano 阅读(696) 评论(0) 推荐(0)