• 大小: 2.20M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 抽奖  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace ParkLottery
{
    class DataAccess
    {
        public static string CONNECT_STRING = “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=“+AppDomain.CurrentDomain.baseDirectory+“\\Park.mdb“;
        OleDbDataAdapter  dataAdapter = new  OleDbDataAdapter ();
      
        public DataSet GetDataSet(string sql)
        {
            try
            {
                OleDbConnection  conn = new  OleDbConnection (CONNECT_STRING);
                OleDbDataAdapter da = new OleDbDataAdapter(sql conn);
                DataSet ds = new DataSet();
                da.Fill(ds “TABLE“);
                conn.Close();
                return ds;
            }
       

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-01-21 10:36  ParkLottery\
     文件        1002  2016-01-21 10:33  ParkLottery.sln
     目录           0  2009-11-27 07:11  ParkLottery\bin\
     目录           0  2016-01-21 10:33  ParkLottery\bin\Debug\
     文件      466944  2009-11-24 14:35  ParkLottery\bin\Debug\Park.mdb
     文件       21656  2016-01-21 10:33  ParkLottery\bin\Debug\ParkLottery.vshost.exe
     文件         490  2012-06-02 22:34  ParkLottery\bin\Debug\ParkLottery.vshost.exe.manifest
     文件       16384  2009-11-23 11:16  ParkLottery\bin\Debug\Rept.rpt
     文件        7680  2009-11-24 09:36  ParkLottery\bin\Debug\ReptXH.rpt
     文件      708986  2005-10-06 10:10  ParkLottery\bin\Debug\Sound3.wav
     目录           0  2009-11-27 07:11  ParkLottery\bin\Debug\zh-CHS\
     文件       13824  2005-12-13 18:57  ParkLottery\bin\Debug\zh-CHS\CrystalDecisions.CrystalReports.Engine.resources.dll
     文件        6656  2005-12-13 18:57  ParkLottery\bin\Debug\zh-CHS\CrystalDecisions.ReportSource.resources.dll
     文件       11776  2005-12-13 18:57  ParkLottery\bin\Debug\zh-CHS\CrystalDecisions.Shared.resources.dll
     文件        1522  2009-11-27 07:07  ParkLottery\DataAccess.cs
     文件       71779  2016-01-21 10:33  ParkLottery\DataSet1.Designer.cs
     文件         381  2009-11-20 08:34  ParkLottery\DataSet1.xsc
     文件        5405  2009-11-20 08:34  ParkLottery\DataSet1.xsd
     文件        1061  2009-11-20 08:34  ParkLottery\DataSet1.xss
     文件         858  2009-11-27 07:08  ParkLottery\frmDJ.cs
     文件        9354  2009-11-23 11:51  ParkLottery\frmDJ.Designer.cs
     文件        6365  2009-11-23 11:51  ParkLottery\frmDJ.resx
     文件        8676  2016-01-21 10:36  ParkLottery\FrmMain.cs
     文件       22607  2016-01-21 10:36  ParkLottery\FrmMain.Designer.cs
     文件       10040  2016-01-21 10:36  ParkLottery\FrmMain.resx
     文件        2295  2009-11-24 14:30  ParkLottery\frmNumber.cs
     文件        7773  2009-11-24 14:26  ParkLottery\frmNumber.Designer.cs
     文件        5814  2009-11-24 14:26  ParkLottery\frmNumber.resx
     文件        8151  2009-11-27 07:08  ParkLottery\FrmShunXuHao.cs
     文件       10428  2009-11-25 09:12  ParkLottery\FrmShunXuHao.Designer.cs
     文件        6008  2009-11-25 09:12  ParkLottery\FrmShunXuHao.resx
............此处省略83个文件信息

评论

共有 条评论