forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParameter.cs
More file actions
57 lines (49 loc) · 1.34 KB
/
Parameter.cs
File metadata and controls
57 lines (49 loc) · 1.34 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace Simple.Data.Ado.Schema
{
public class Parameter
{
private readonly string _name;
private readonly Type _type;
private readonly ParameterDirection _direction;
private int _size;
private DbType _dbtype;
public Parameter(string name, Type type, ParameterDirection direction)
{
_name = name;
_direction = direction;
_type = type;
}
public Parameter(string name, Type type, ParameterDirection direction, DbType dbtype, int size)
: this(name, type, direction)
{
_dbtype = dbtype;
_size = size;
}
public ParameterDirection Direction
{
get { return _direction; }
}
public Type Type
{
get { return _type; }
}
public string Name
{
get { return _name; }
}
//Tim Cartwright: I added size and dbtype so inout/out params would function properly.
public int Size
{
get { return _size; }
}
public DbType Dbtype
{
get { return _dbtype; }
}
}
}