Skip to content

Commit 7c01bf1

Browse files
authored
Update OLED.cs
1 parent 5a9bb12 commit 7c01bf1

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

OLED.cs

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -12,61 +12,6 @@
1212
using System.Text;
1313
using System.Data.OleDb;
1414
using System.Data;
15-
class OlED
16-
{
17-
public void connect(string query)
18-
{
19-
}
20-
public OleDbDataReader selects(OleDbCommand command, OleDbConnection connection)
21-
{
22-
connection.Open();
23-
using (OleDbDataReader reader = command.ExecuteReader())
24-
{
25-
connection.Close();
26-
return reader;
27-
}
28-
}
29-
public DataSet get(OleDbCommand command, OleDbConnection connection)
30-
{
31-
connection.Open();
32-
DataSet set = new DataSet();
33-
using (OleDbDataAdapter adapter = new OleDbDataAdapter(command))
34-
{
35-
adapter.Fill(set);
36-
connection.Close();
37-
return set;
38-
}
39-
}
40-
public Int64 count(OleDbCommand command, OleDbConnection connection)
41-
{
42-
Int64 count = 0;
43-
connection.Open();
44-
//try,catch
45-
using (OleDbDataReader reader = command.ExecuteReader())
46-
{
47-
while (reader.Read())
48-
{
49-
count++;
50-
}
51-
}
52-
connection.Close();
53-
return count;
54-
}
55-
}/*
56-
*
57-
* OLED.cs
58-
* Author: Base Max
59-
* The purpose of writing this library is to create a simple and ready-made facility. (https://github.com/BaseMax/).
60-
* OLEDB = OLE DB = Object Linking + Embedding Database
61-
*
62-
*/
63-
using System;
64-
using System.Collections.Generic;
65-
using System.Linq;
66-
using System.Text;
67-
using System.Data.OleDb;
68-
using System.Data;
69-
7015
class OlED
7116
{
7217
public void connect(string query)

0 commit comments

Comments
 (0)