资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
namespace WindowsFormsApplication1
{
    class Dbhelp
    {
        //1.连接字符串
        private const string str = “data source=.;initial catalog=FlowerSys;user id=sa;pwd=ok“;
        //2.创建connection对象
        private SqlConnection _conn;

        public SqlConnection Conn
        {
            get
            {
                if (_conn == null)
                {
                    _conn = new SqlConnection(str);
                }
                return _conn;
            }
        }
        //打开数据库
        public void OpenConn()
        {
            if (Conn.State == ConnectionState.Closed)
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-06-05 18:59  WindowsFormsApplication1\
     文件     5242880  2020-06-05 14:09  WindowsFormsApplication1\FlowerSys.mdf
     文件     2097152  2020-06-05 14:09  WindowsFormsApplication1\FlowerSys_log.ldf
     目录           0  2020-06-04 15:39  WindowsFormsApplication1\WindowsFormsApplication1\
     文件         962  2020-06-04 14:19  WindowsFormsApplication1\WindowsFormsApplication1.sln
     文件       51200  2020-06-05 18:03  WindowsFormsApplication1\WindowsFormsApplication1.v11.suo
     文件         187  2020-06-04 14:19  WindowsFormsApplication1\WindowsFormsApplication1\App.config
     目录           0  2020-06-04 14:22  WindowsFormsApplication1\WindowsFormsApplication1\bin\
     目录           0  2020-06-05 14:02  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
     文件       25600  2020-06-04 16:14  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件         187  2020-06-04 14:19  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config
     文件       58880  2020-06-04 16:14  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       22984  2020-06-05 18:01  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         187  2020-06-04 14:19  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config
     文件         490  2019-03-19 12:46  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     目录           0  2020-06-04 14:22  WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\
     文件        1299  2020-06-04 14:32  WindowsFormsApplication1\WindowsFormsApplication1\Dbher.cs
     文件         863  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmDengLu.cs
     文件        5020  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmDengLu.Designer.cs
     文件        6013  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmDengLu.resx
     文件        4988  2020-06-04 16:14  WindowsFormsApplication1\WindowsFormsApplication1\FrmXiaoShouXInxin.cs
     文件       13386  2020-06-04 15:36  WindowsFormsApplication1\WindowsFormsApplication1\FrmXiaoShouXInxin.Designer.cs
     文件        7495  2020-06-04 15:36  WindowsFormsApplication1\WindowsFormsApplication1\FrmXiaoShouXInxin.resx
     文件        3014  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmXiuGai.cs
     文件        6641  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmXiuGai.Designer.cs
     文件        5817  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmXiuGai.resx
     文件        2519  2020-06-04 16:11  WindowsFormsApplication1\WindowsFormsApplication1\FrmZengJia.cs
     文件        8611  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmZengJia.Designer.cs
     文件        5817  2020-06-04 16:10  WindowsFormsApplication1\WindowsFormsApplication1\FrmZengJia.resx
     目录           0  2020-06-04 14:19  WindowsFormsApplication1\WindowsFormsApplication1\obj\
     目录           0  2020-06-05 14:02  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\
............此处省略24个文件信息

评论

共有 条评论