随笔分类 -  DotNet

DataTable转为List对象
摘要:1 public static List Convert2Object(DataTable dt) where T : new() 2 { 3 List list = new List(); 4 foreach (DataRow ... 阅读全文

posted @ 2015-10-03 23:27 symcious 阅读(207) 评论(0) 推荐(0)

从Post请求中获取传递的Content
摘要:HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"]; byte[] byts = new byte[context.Request.ContentLength]; ... 阅读全文

posted @ 2015-09-29 14:49 symcious 阅读(379) 评论(0) 推荐(0)

sql server 存储过程分页
摘要:create proc [dbo].[sp_GetPagedList] ( @pageIndex int, @pageSize int, @orderBy nvarchar(512), @colu... 阅读全文

posted @ 2015-09-10 15:26 symcious 阅读(130) 评论(0) 推荐(0)

C#中一次执行多条Oracle语句出现ORA-00911,invalid character
摘要:需要在开头和结尾分别加入begin end ,如beginselect * from test;select * from test2;end; 阅读全文

posted @ 2015-07-06 09:44 symcious 阅读(393) 评论(0) 推荐(0)

ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
摘要:在web.config文件的connectionStrings连接串中的Data Source设置成Data Source=IP/orclIP:服务器IPorcl:服务名称 阅读全文

posted @ 2015-07-03 12:54 symcious 阅读(2028) 评论(0) 推荐(0)

导航