上一页 1 ··· 3 4 5 6 7
摘要: using System;using System.Collections.Generic;using System.Text;using System.Net;using System.IO;namespace HostConsole{ class Program { static void Main(string[] args) { if (HttpListener.IsSupported) { HttpListener listener = new HttpListener(... 阅读全文
posted @ 2012-03-29 23:20 Soar、毅 阅读(995) 评论(1) 推荐(2) 编辑
摘要: 相信使用动软代码生成器生成三层的人不在少数,三层中一个必不可少的功能就是把DataSet转换为实体,虽然动软提供的有现成的模版,但是仍然觉得不够强大。于是自己写了一个模版用来生成实体转换器。代码如下:<#@ template language="c#" HostSpecific="True" #><#@ output extension= ".cs" #><# TableHost host = (TableHost)(Host); string DbParaHead=host.DbParaHead; st 阅读全文
posted @ 2012-03-29 20:51 Soar、毅 阅读(851) 评论(1) 推荐(2) 编辑
摘要: CREATE PROCEDURE [dbo].[V2_WEB_A_Gis_GetList] @FatherId INT, @PageIndex INT, @PageSize INT, @Num INT OUTPUTASBEGIN DECLARE @MinId INT DECLARE @MaxId INT SET @MinId = (@PageIndex - 1) * @PageSize SET @MaxId = @MinId + @PageSize CREATE TABLE #TempTable ( IndexId INT IDENTITY(1,1) NOT NULL, Id INT ) .. 阅读全文
posted @ 2012-03-27 22:20 Soar、毅 阅读(435) 评论(1) 推荐(0) 编辑
摘要: 内容概要:什么是Code Snippet?它能为我们带来什么?如何使用Code Snippet?分析Code Snippet文件【.snippet】编写一个实现属性更改通知的Code Snippet什么是Code Snippet?它能为我们带来什么?Code Snippet是预编写的代码片段,您可以随时使用 Visual Studio 将这些代码片段插入到您的应用程序中。这些代码段减少了键入重复代码或搜索示例所用的时间,从而提高了工作效率。可以使用代码段 XML 架构创建自己的 Visual Basic、Visual C# 或 XML 代码段,并将它们添加到 Visual Studio 已包含 阅读全文
posted @ 2012-03-26 22:51 Soar、毅 阅读(3788) 评论(6) 推荐(6) 编辑
上一页 1 ··· 3 4 5 6 7