上一页 1 2 3 4 5 6 7 8 ··· 19 下一页
  2014年1月11日
摘要: -- my current uk time is 2014-01-09 10:43:00 +0DECLARE @userLocalTimeChina datetimeoffset(4) = '2014-01-09 18:43:00 +08:00';DECLARE @userLocalTimeLasVagas datetimeoffset(4) = '2014-01-09 02:43:00 -08:00';DECLARE @userUTCTime datetimeoffset(4) = '2014-01-09 10:43:00 +00:00';De 阅读全文
posted @ 2014-01-11 13:39 cw_volcano 阅读(308) 评论(0) 推荐(0) 编辑
  2013年8月30日
摘要: 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 阅读(2000) 评论(0) 推荐(0) 编辑
  2013年8月29日
摘要: 1.OnClientClick="return validation()" //注意return2.//默认情况下返回truefunction validation() { if ($('#txtStartDate').val() == "" || $('#txtStartTime').val() == "" || $('#txtEndDate').val() == "" || $('#txtEndTime').val() == "" 阅读全文
posted @ 2013-08-29 15:49 cw_volcano 阅读(243) 评论(0) 推荐(0) 编辑
  2013年8月21日
摘要: 单击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 阅读(939) 评论(0) 推荐(0) 编辑
  2013年8月20日
摘要: 在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 阅读(317) 评论(0) 推荐(0) 编辑
  2013年8月6日
摘要: 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 阅读(421) 评论(0) 推荐(0) 编辑
  2013年8月5日
摘要: vs2012发布截图:TFS邮件设置截图: 阅读全文
posted @ 2013-08-05 11:12 cw_volcano 阅读(252) 评论(0) 推荐(0) 编辑
  2013年8月1日
摘要: 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 阅读(676) 评论(0) 推荐(0) 编辑
  2013年7月30日
摘要: using System;using System.Collections;using System.Collections.Generic;using System.Configuration;using System.Data;using System.Data.OleDb;using System.Data.SqlClient;using System.IO;using System.Linq;using System.Net.Mail;using System.Runtime.InteropServices;using System.Web;using System.Web.UI;us 阅读全文
posted @ 2013-07-30 16:29 cw_volcano 阅读(340) 评论(0) 推荐(0) 编辑
  2013年6月27日
摘要: 第一步:创建一个控制台应用程序,起名为EFDemo2. 第二步:创建一个实体模型 (1)在EFDemo项目上面右击选择添加—新建项—在已安装的选项中选择数据—ADO.NET实体对象模型,如图所示: 3. 与数据库进行连接 (1) 单击第二步建立的实体数据模型的添加按钮,然后我们选择从数据库生成,如图所示: (2) 单击下一步,然后如果我们以前没有操作的话在这里将是为空的,然后我们单击新建连接,建立一个数据库的链接,然后选择“是,在连接字符串中包含敏感数据”,如图所示: (3) 单击下一步,选择我们要生成实体框架对应的表,试图或者存储过程和函数,因为这里我只使用到了表,所以选择表的... 阅读全文
posted @ 2013-06-27 17:40 cw_volcano 阅读(286) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页