Created
January 12, 2012 14:52
-
-
Save rohinomiya/1600953 to your computer and use it in GitHub Desktop.
コードスニペット サンプル
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Create a data adapter</Title> | |
<Description>Creates a SqlDataAdapter object.</Description> | |
<Author>Microsoft Corporation</Author> | |
<Shortcut>createadapter</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>SQL</ID> | |
<ToolTip>Replace with a SQL connection string.</ToolTip> | |
<Default>"SQL connection string"</Default> | |
</Literal> | |
<Object> | |
<ID>Connection</ID> | |
<Type>System.Data.SqlClient.SqlConnection</Type> | |
<ToolTip>Replace with a connection object in your application.</ToolTip> | |
<Default>dcConnection</Default> | |
</Object> | |
</Declarations> | |
<Code Language="CSharp"> | |
<![CDATA[ | |
daCustomers = new SqlClient.SqlDataAdapter(); | |
selectCommand = new SqlClient.SqlCommand($SQL$); | |
daCustomers.SelectCommand = selectCommand; | |
daCustomers.SelectCommand.Connection = $Connection$; | |
]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment