File tree Expand file tree Collapse file tree 1 file changed +0
-55
lines changed Expand file tree Collapse file tree 1 file changed +0
-55
lines changed Original file line number Diff line number Diff line change 12
12
using System . Text ;
13
13
using System . Data . OleDb ;
14
14
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
-
70
15
class OlED
71
16
{
72
17
public void connect ( string query )
You can’t perform that action at this time.
0 commit comments