摘要: 在写LINQ语句的时候,往往会看到.AsEnumerable() 和 .AsQueryable() 。例如:string strcon = "Data Source=.\\SQLEXPRESS;Initial Catalog=Db_Example;Persist Security Info=True;User ID=sa;Password=sa";SqlConnection con = new SqlConnection(strcon);con.Open();string strsql = "select * from SC,Course where SC.Cno 阅读全文
posted @ 2011-08-11 15:13 然嗄 阅读(21886) 评论(3) 推荐(8) 编辑
摘要: Console.WriteLine()是输出到屏幕的,一般用在控制台程序中,而且输出的是一行。下一个输出在下一行显示。Response.Write()是输出到网页的,一般用在WebSite或者WebApplaction中,输出的不是一行。下一个输出接续上一个输出的末尾。 阅读全文
posted @ 2011-08-11 14:47 然嗄 阅读(1321) 评论(0) 推荐(0) 编辑