资源简介
C# 课程设计 个人信息管理系统 SQL数据库C# 课程设计 个人信息管理系统 SQL数据库

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Data;
namespace CKeShe
{
class Class1
{
public DataSet ds=new DataSet ();
String connstr = “Data Source=(local);Initial Catalog=db_keshe;Integrated Security=True“;
SqlConnection conn;
public Class1()
{
//String connstr = “Data Source=(local);Initial Catalog=db_keshe;Integrated Security=True“;
conn = new SqlConnection(connstr);
conn.Open();
}
public SqlConnection connect()
{
String connstr = “Data Source=(local);Initial Catalog=db_keshe;Integrated Security=True“;
SqlConnection conn = new SqlConnection(connstr);
return conn;
}
public SqlCommand Command()
{
String connstr = “Data Source=(local);Initial Catalog=db_keshe;Integrated Security=True“;
SqlConnection conn = new SqlConnection(connstr);
SqlCommand comm = new SqlCommand(“select xingcheng from tb_xingcheng“ conn);
return comm;
}
public int Delete(string str1string str2)
{
try
{
SqlCommand comm = new SqlCommand(“delete from “ + str1 + “ where id=‘“ + str2 + “‘“ conn);
comm.ExecuteNonQuery();
//conn.Close();
return 1;
}
catch (Exception e)
{
return 0;
}
}
public int Delete(string str1)
{
try
{
SqlCommand comm = new SqlCommand(str1 conn);
comm.ExecuteNonQuery();
//conn.Close();
return 1;
}
catch (Exception e)
{
return 0;
}
}
public int Insert(string strstring str1 string str2 string str3)
{
try
{
SqlCommand comm = new SqlCommand(“insert into “ + str + “ (xingchengdatebeizhu) values(‘“ + str1 + “‘‘“ + str2 + “‘‘“ + str3 + “‘);“ conn);
comm.ExecuteNonQuery();
//conn.Close ();
return 1;
}
catch (Exception e)
{
return 0;
}
}
public int Insert(string str1)
{
try
{
SqlCommand comm = new SqlCommand(str1 conn);
comm.ExecuteNonQuery();
//conn.Close();
return 1;
}
catch (Exception e)
{
return 0;
}
}
public SqlCommand Select(string str1 string str2string str3)
{
SqlCommand comm = new SqlCommand(“select “+str1+“ from “+str2+“ w
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 53618 2011-05-10 19:08 Ckeshe_0604\CKeShe\1.jpg
文件 20180 2011-04-12 18:48 Ckeshe_0604\CKeShe\2.jpg
文件 63488 2010-09-23 22:52 Ckeshe_0604\CKeShe\3.jpg
文件 35311 2011-04-28 21:48 Ckeshe_0604\CKeShe\4.jpg
文件 28737 2011-06-04 11:59 Ckeshe_0604\CKeShe\5.JPG
文件 323584 2011-06-09 11:09 Ckeshe_0604\CKeShe\CKeShe\bin\Debug\CKeShe.exe
文件 112128 2011-06-09 11:09 Ckeshe_0604\CKeShe\CKeShe\bin\Debug\CKeShe.pdb
文件 5632 2005-11-11 22:25 Ckeshe_0604\CKeShe\CKeShe\bin\Debug\CKeShe.vshost.exe
文件 4988 2011-06-04 15:20 Ckeshe_0604\CKeShe\CKeShe\CKeShe.csproj
文件 4234 2011-06-04 15:59 Ckeshe_0604\CKeShe\CKeShe\Class1.cs
文件 131 2011-06-02 12:59 Ckeshe_0604\CKeShe\CKeShe\Class2.cs
文件 1500 2011-06-04 19:43 Ckeshe_0604\CKeShe\CKeShe\Form1.cs
文件 6409 2011-06-02 16:26 Ckeshe_0604\CKeShe\CKeShe\Form1.Designer.cs
文件 166107 2011-06-02 16:26 Ckeshe_0604\CKeShe\CKeShe\Form1.resx
文件 20832 2011-06-09 11:09 Ckeshe_0604\CKeShe\CKeShe\Form2.cs
文件 34826 2011-06-04 15:24 Ckeshe_0604\CKeShe\CKeShe\Form2.Designer.cs
文件 246763 2011-06-04 15:24 Ckeshe_0604\CKeShe\CKeShe\Form2.resx
文件 1238 2011-06-03 14:25 Ckeshe_0604\CKeShe\CKeShe\Form3.cs
文件 5766 2011-06-02 10:38 Ckeshe_0604\CKeShe\CKeShe\Form3.Designer.cs
文件 5814 2011-06-02 10:38 Ckeshe_0604\CKeShe\CKeShe\Form3.resx
文件 3016 2011-06-03 16:31 Ckeshe_0604\CKeShe\CKeShe\Form4.cs
文件 7090 2011-06-03 15:50 Ckeshe_0604\CKeShe\CKeShe\Form4.Designer.cs
文件 5814 2011-06-03 15:50 Ckeshe_0604\CKeShe\CKeShe\Form4.resx
文件 2536 2011-06-04 11:53 Ckeshe_0604\CKeShe\CKeShe\Form5.cs
文件 6859 2011-06-04 11:37 Ckeshe_0604\CKeShe\CKeShe\Form5.Designer.cs
文件 5814 2011-06-04 11:37 Ckeshe_0604\CKeShe\CKeShe\Form5.resx
文件 2057 2011-06-04 16:10 Ckeshe_0604\CKeShe\CKeShe\Form6.cs
文件 6979 2011-06-04 15:20 Ckeshe_0604\CKeShe\CKeShe\Form6.Designer.cs
文件 5814 2011-06-04 15:20 Ckeshe_0604\CKeShe\CKeShe\Form6.resx
文件 437 2011-06-09 11:18 Ckeshe_0604\CKeShe\CKeShe\obj\CKeShe.csproj.FileList.txt
............此处省略37个文件信息
- 上一篇:c#编写的宿舍管理系统
- 下一篇:C#仿Windows记事本附带设计说明书
相关资源
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
评论
共有 条评论