markus / KCOM / IAbstractDatabase.cs @ a5d3dcc3
이력 | 보기 | 이력해설 | 다운로드 (1.73 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Web; |
5 |
using System.Text; |
6 |
using System.Data; |
7 |
using System.Data.Common; |
8 |
|
9 |
namespace KCOM |
10 |
{ |
11 |
public interface IAbstractDatabase : IDisposable |
12 |
{ |
13 |
DbConnection Connection { get; } |
14 |
DbCommand GetSqlStringCommand(string sqlString); |
15 |
DbCommand GetSqlStringCommand(string sqlStringFormat, params object[] args); |
16 |
DbCommand GetStoredProcedureCommand(string storedProcName); |
17 |
|
18 |
DbParameter AddInParameter(DbCommand cmd, string paramName, DbType paramType, object value); |
19 |
DbParameter AddInParameter(DbCommand cmd, string paramName, DbType paramType, int size, object value); |
20 |
DbParameter AddOutParameter(DbCommand cmd, string paramName, DbType paramType, object value); |
21 |
DbParameter AddParameter(DbCommand cmd, string paramName, |
22 |
DbType paramType, |
23 |
ParameterDirection direction, |
24 |
object value); |
25 |
DbParameter AddParameter(DbCommand cmd, string paramName, |
26 |
DbType paramType, |
27 |
ParameterDirection direction, |
28 |
int size, |
29 |
object value); |
30 |
|
31 |
int ExecuteNonQuery(DbCommand cmd); |
32 |
int ExecuteNonQuery(string sSql); |
33 |
int ExecuteNonQuery(DbCommand cmd, DbTransaction txn); |
34 |
DbDataReader ExecuteReader(DbCommand cmd); |
35 |
DbDataReader ExecuteReader(DbCommand cmd, CommandBehavior behavior); |
36 |
DataSet ExecuteDataSet(DbCommand cmd, DbTransaction txn = null); |
37 |
|
38 |
DbTransaction BeginTransaction(); |
39 |
} |
40 |
} |