paul_cheung

导航

02 2014 档案

linq to entity中遇到的问题
摘要:当使用 from m in _db.students从数据库中获取数据时,数据库中的数据类型和C#中的不同,所以可能会出错!先作_db.students.ToList()然后select 阅读全文

posted @ 2014-02-17 17:26 paul_cheung 阅读(128) 评论(0) 推荐(0)

asp.net项目下的web service返回json数据问题
摘要:App_Code目录下放置WebService.cs文件,文件内容如:using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.ServiceModel.Web;using System.Text;using System.Web;using System.Web.Script.Serialization;using System.Web.Script.Services;using System.Web.Se 阅读全文

posted @ 2014-02-17 17:21 paul_cheung 阅读(1031) 评论(0) 推荐(0)

sql 分页
摘要:最简单的分页(没考虑效率) SELECT TOP 10 [Id],[ReflectionId],[CreatorUserId],[Type],[Text],[AttachmentsJson],[CreatedTime] FROM [LeadersCorporationDB].[dbo].[ReflectionLog] WHERE [ReflectionId]='2769D3CB-BB5C-47A1-9BF3-00C16614C4EB' AND Id NOT IN(SELECT TOP ((2-1)*10+1) Id FROM [LeadersCorporationDB].[db 阅读全文

posted @ 2014-02-14 11:23 paul_cheung 阅读(99) 评论(0) 推荐(0)

OData + jqgrid 部署在IIS 8.0上可增加但不能删除修改问题
摘要:解决方法:里添加 和 原因:iis默认开启了webDAV module和handler,关闭这两个就Ok了! 阅读全文

posted @ 2014-02-14 11:23 paul_cheung 阅读(216) 评论(0) 推荐(0)