added csharp, sql snippets from users

This commit is contained in:
Zhang Chiyuan
2008-09-10 11:56:57 +00:00
parent bfe0255fd1
commit 0732cfc7e6
21 changed files with 177 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : , ColumnName ColumnType NOT NULL...
# --
, ${1:Name} ${2:Type} ${3:NOT NULL}

View File

@@ -0,0 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : CONSTRAINT [..] PRIMARY KEY ...
# --
CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}])

View File

@@ -0,0 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : CONSTRAINT [..] FOREIGN KEY ...
# --
CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}])

View File

@@ -0,0 +1,10 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : create table ...
# --
CREATE TABLE [${1:dbo}].[${2:TableName}]
(
${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL}
$0
CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3])
)
GO

View File

@@ -0,0 +1,12 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : create procedure ...
# --
CREATE PROCEDURE [${1:dbo}].[${2:Name}]
(
$3 $4 = ${5:NULL} ${6:OUTPUT}
)
AS
BEGIN
$0
END
GO

View File

@@ -0,0 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : REFERENCES ...
# --
REFERENCES ${1:TableName}([${2:ColumnName}])