2009年7月30日
摘要: 普通存储过程 首先在查询分析器运行下面的代码来创建一个存储过程:create proc sp_singleresultsetasset nocount onselect * from customers 然后打开IDE的服务器资源管理器,之前我们从表中拖动表到dbml设计视图,这次我们从存储过程中找到刚才创建的存储过程,然后拖动到设计视图。在方法面板中可以看到已经创建了一个sp_singleres... 阅读全文
posted @ 2009-07-30 17:50 站在世界的屋顶 阅读(436) 评论(0) 推荐(0)
摘要: select描述:查询顾客的公司名、地址信息查询句法:var 构建匿名类型1 = from c in ctx.Customers select new { 公司名 = c.CompanyName, 地址 = c.Address };对应SQL:SELECT [t0].[CompanyName], [t0].[Address]FROM [dbo].[Customers] AS [t0] 描述:查询职... 阅读全文
posted @ 2009-07-30 17:49 站在世界的屋顶 阅读(286) 评论(0) 推荐(0)