-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIDbCommand.cs
41 lines (30 loc) · 1.02 KB
/
IDbCommand.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Collections.Generic;
using System.Data;
namespace AdvancedSystems.Connector.Abstractions;
/// <summary>
/// Defines an SQL statement or stored procedure to execute against a data source.
/// </summary>
public interface IDbCommand
{
#region Properties
/// <summary>
/// Gets or sets the Transact-SQL statement or stored
/// procedure to execute at the data source.
/// </summary>
string CommandText { get; set; }
/// <summary>
/// Gets or sets a value indicating how the <seealso cref="CommandText"/>
/// property is to be interpreted.
/// </summary>
CommandType CommandType { get; set; }
/// <summary>
/// Gets a collection of <seealso cref="IDbParameter"/> parameters.
/// </summary>
IReadOnlyList<IDbParameter> Parameters { get; }
#endregion
#region Methods
void AddParameter(string parameterName, object value, DbType type);
void AddParameter<T>(string parameterName, T value);
string ToString();
#endregion
}