From 62d55f844f7c9256d1c46b6521c527d786cfa912 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E6=A3=AE?= <2022969173@qq.com>
Date: Sun, 5 Jul 2020 15:56:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
"\351\231\210\346\243\256/App.config" | 6 +++
.../ConsoleApp11.csproj" | 53 +++++++++++++++++++
"\351\231\210\346\243\256/ConsoleApp11.sln" | 25 +++++++++
"\351\231\210\346\243\256/Program.cs" | 38 +++++++++++++
.../Properties/AssemblyInfo.cs" | 36 +++++++++++++
5 files changed, 158 insertions(+)
create mode 100644 "\351\231\210\346\243\256/App.config"
create mode 100644 "\351\231\210\346\243\256/ConsoleApp11.csproj"
create mode 100644 "\351\231\210\346\243\256/ConsoleApp11.sln"
create mode 100644 "\351\231\210\346\243\256/Program.cs"
create mode 100644 "\351\231\210\346\243\256/Properties/AssemblyInfo.cs"
diff --git "a/\351\231\210\346\243\256/App.config" "b/\351\231\210\346\243\256/App.config"
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ "b/\351\231\210\346\243\256/App.config"
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\351\231\210\346\243\256/ConsoleApp11.csproj" "b/\351\231\210\346\243\256/ConsoleApp11.csproj"
new file mode 100644
index 0000000..aa6f602
--- /dev/null
+++ "b/\351\231\210\346\243\256/ConsoleApp11.csproj"
@@ -0,0 +1,53 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {A2F7C96F-F316-45C8-9091-FCDAE6330F36}
+ Exe
+ ConsoleApp11
+ ConsoleApp11
+ v4.7.2
+ 512
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/\351\231\210\346\243\256/ConsoleApp11.sln" "b/\351\231\210\346\243\256/ConsoleApp11.sln"
new file mode 100644
index 0000000..d351881
--- /dev/null
+++ "b/\351\231\210\346\243\256/ConsoleApp11.sln"
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30225.117
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp11", "ConsoleApp11\ConsoleApp11.csproj", "{A2F7C96F-F316-45C8-9091-FCDAE6330F36}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A2F7C96F-F316-45C8-9091-FCDAE6330F36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A2F7C96F-F316-45C8-9091-FCDAE6330F36}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A2F7C96F-F316-45C8-9091-FCDAE6330F36}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A2F7C96F-F316-45C8-9091-FCDAE6330F36}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {27C12E2A-B577-48E1-9702-7C6668DA89C4}
+ EndGlobalSection
+EndGlobal
diff --git "a/\351\231\210\346\243\256/Program.cs" "b/\351\231\210\346\243\256/Program.cs"
new file mode 100644
index 0000000..59b3f38
--- /dev/null
+++ "b/\351\231\210\346\243\256/Program.cs"
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Data.SqlClient;
+using System.Data;
+
+namespace ConsoleApp11
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ string connectionString = "server=.;database=senlnfo;uid=sa;pwd=zbc200136";
+ SqlConnection sqlConnection = new SqlConnection(connectionString);
+ sqlConnection.Open();
+
+
+ string sqlcommandString = "select * from Users";
+ SqlCommand sqlCmd = new SqlCommand(sqlcommandString, sqlConnection);
+ var da = sqlCmd.ExecuteReader();
+
+ Console.WriteLine(" 名字+年龄");
+ while (da.Read())
+ {
+ Console.WriteLine(" {0}/t {1}/t", da[1], da[2]);
+ }
+ sqlConnection.Close();
+
+
+
+ }
+ }
+}
+
diff --git "a/\351\231\210\346\243\256/Properties/AssemblyInfo.cs" "b/\351\231\210\346\243\256/Properties/AssemblyInfo.cs"
new file mode 100644
index 0000000..8ae9e60
--- /dev/null
+++ "b/\351\231\210\346\243\256/Properties/AssemblyInfo.cs"
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("ConsoleApp11")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ConsoleApp11")]
+[assembly: AssemblyCopyright("Copyright © 2020")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("a2f7c96f-f316-45c8-9091-fcdae6330f36")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--
Gitee