C# 课程设计 个人信息管理系统 SQL数据库C# 课程设计 个人信息管理系统 SQL数据库
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 53618 2011-05-10 19:08 Ckeshe_0604CKeShe1.jpg
文件 20180 2011-04-12 18:48 Ckeshe_0604CKeShe2.jpg
文件 63488 2010-09-23 22:52 Ckeshe_0604CKeShe3.jpg
文件 35311 2011-04-28 21:48 Ckeshe_0604CKeShe4.jpg
文件 28737 2011-06-04 11:59 Ckeshe_0604CKeShe5.JPG
文件 323584 2011-06-09 11:09 Ckeshe_0604CKeSheCKeSheinDebugCKeShe.exe
文件 112128 2011-06-09 11:09 Ckeshe_0604CKeSheCKeSheinDebugCKeShe.pdb
文件 5632 2005-11-11 22:25 Ckeshe_0604CKeSheCKeSheinDebugCKeShe.vshost.exe
文件 4988 2011-06-04 15:20 Ckeshe_0604CKeSheCKeSheCKeShe.csproj
文件 4234 2011-06-04 15:59 Ckeshe_0604CKeSheCKeSheClass1.cs
文件 131 2011-06-02 12:59 Ckeshe_0604CKeSheCKeSheClass2.cs
文件 1500 2011-06-04 19:43 Ckeshe_0604CKeSheCKeSheForm1.cs
文件 6409 2011-06-02 16:26 Ckeshe_0604CKeSheCKeSheForm1.Designer.cs
文件 166107 2011-06-02 16:26 Ckeshe_0604CKeSheCKeSheForm1.resx
文件 20832 2011-06-09 11:09 Ckeshe_0604CKeSheCKeSheForm2.cs
文件 34826 2011-06-04 15:24 Ckeshe_0604CKeSheCKeSheForm2.Designer.cs
文件 246763 2011-06-04 15:24 Ckeshe_0604CKeSheCKeSheForm2.resx
文件 1238 2011-06-03 14:25 Ckeshe_0604CKeSheCKeSheForm3.cs
文件 5766 2011-06-02 10:38 Ckeshe_0604CKeSheCKeSheForm3.Designer.cs
文件 5814 2011-06-02 10:38 Ckeshe_0604CKeSheCKeSheForm3.resx
文件 3016 2011-06-03 16:31 Ckeshe_0604CKeSheCKeSheForm4.cs
文件 7090 2011-06-03 15:50 Ckeshe_0604CKeSheCKeSheForm4.Designer.cs
文件 5814 2011-06-03 15:50 Ckeshe_0604CKeSheCKeSheForm4.resx
文件 2536 2011-06-04 11:53 Ckeshe_0604CKeSheCKeSheForm5.cs
文件 6859 2011-06-04 11:37 Ckeshe_0604CKeSheCKeSheForm5.Designer.cs
文件 5814 2011-06-04 11:37 Ckeshe_0604CKeSheCKeSheForm5.resx
文件 2057 2011-06-04 16:10 Ckeshe_0604CKeSheCKeSheForm6.cs
文件 6979 2011-06-04 15:20 Ckeshe_0604CKeSheCKeSheForm6.Designer.cs
文件 5814 2011-06-04 15:20 Ckeshe_0604CKeSheCKeSheForm6.resx
文件 437 2011-06-09 11:18 Ckeshe_0604CKeSheCKeSheobjCKeShe.csproj.FileList.txt
............此处省略37个文件信息
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_0604CKeShe1.jpg
文件 20180 2011-04-12 18:48 Ckeshe_0604CKeShe2.jpg
文件 63488 2010-09-23 22:52 Ckeshe_0604CKeShe3.jpg
文件 35311 2011-04-28 21:48 Ckeshe_0604CKeShe4.jpg
文件 28737 2011-06-04 11:59 Ckeshe_0604CKeShe5.JPG
文件 323584 2011-06-09 11:09 Ckeshe_0604CKeSheCKeSheinDebugCKeShe.exe
文件 112128 2011-06-09 11:09 Ckeshe_0604CKeSheCKeSheinDebugCKeShe.pdb
文件 5632 2005-11-11 22:25 Ckeshe_0604CKeSheCKeSheinDebugCKeShe.vshost.exe
文件 4988 2011-06-04 15:20 Ckeshe_0604CKeSheCKeSheCKeShe.csproj
文件 4234 2011-06-04 15:59 Ckeshe_0604CKeSheCKeSheClass1.cs
文件 131 2011-06-02 12:59 Ckeshe_0604CKeSheCKeSheClass2.cs
文件 1500 2011-06-04 19:43 Ckeshe_0604CKeSheCKeSheForm1.cs
文件 6409 2011-06-02 16:26 Ckeshe_0604CKeSheCKeSheForm1.Designer.cs
文件 166107 2011-06-02 16:26 Ckeshe_0604CKeSheCKeSheForm1.resx
文件 20832 2011-06-09 11:09 Ckeshe_0604CKeSheCKeSheForm2.cs
文件 34826 2011-06-04 15:24 Ckeshe_0604CKeSheCKeSheForm2.Designer.cs
文件 246763 2011-06-04 15:24 Ckeshe_0604CKeSheCKeSheForm2.resx
文件 1238 2011-06-03 14:25 Ckeshe_0604CKeSheCKeSheForm3.cs
文件 5766 2011-06-02 10:38 Ckeshe_0604CKeSheCKeSheForm3.Designer.cs
文件 5814 2011-06-02 10:38 Ckeshe_0604CKeSheCKeSheForm3.resx
文件 3016 2011-06-03 16:31 Ckeshe_0604CKeSheCKeSheForm4.cs
文件 7090 2011-06-03 15:50 Ckeshe_0604CKeSheCKeSheForm4.Designer.cs
文件 5814 2011-06-03 15:50 Ckeshe_0604CKeSheCKeSheForm4.resx
文件 2536 2011-06-04 11:53 Ckeshe_0604CKeSheCKeSheForm5.cs
文件 6859 2011-06-04 11:37 Ckeshe_0604CKeSheCKeSheForm5.Designer.cs
文件 5814 2011-06-04 11:37 Ckeshe_0604CKeSheCKeSheForm5.resx
文件 2057 2011-06-04 16:10 Ckeshe_0604CKeSheCKeSheForm6.cs
文件 6979 2011-06-04 15:20 Ckeshe_0604CKeSheCKeSheForm6.Designer.cs
文件 5814 2011-06-04 15:20 Ckeshe_0604CKeSheCKeSheForm6.resx
文件 437 2011-06-09 11:18 Ckeshe_0604CKeSheCKeSheobjCKeShe.csproj.FileList.txt
............此处省略37个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)