Class ParameterIndexer
SQL procedure call out parameters indexer
Inherited Members
Namespace: XData
Assembly: XData.docfx.dll
Syntax
public sealed class ParameterIndexer
Constructors
| Improve this Doc View SourceParameterIndexer(IEnumerable<IParameterDescription>)
Parameter indexer constructor
Declaration
public ParameterIndexer(IEnumerable<IParameterDescription> parameters)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IParameterDescription> | parameters | Parameter sequence |
Properties
| Improve this Doc View SourceCount
Variables count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[String]
Parameter indexer
Declaration
public IParameterDescription this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | name | Parameter name |
Property Value
Type | Description |
---|---|
IParameterDescription | Variable |
Methods
| Improve this Doc View SourceAdd(IParameterDescription)
Add parameter
Declaration
public void Add(IParameterDescription parameter)
Parameters
Type | Name | Description |
---|---|---|
IParameterDescription | parameter | Variable |
Add(ParameterIndexer)
Add variables to collection
Declaration
public void Add(ParameterIndexer variables)
Parameters
Type | Name | Description |
---|---|---|
ParameterIndexer | variables | Variable indexer |
Contains(String)
Variables contains name
Declaration
public bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Variable name |
Returns
Type | Description |
---|---|
Boolean | Contains flag |
GetValue(String)
Returns parameter value
Declaration
public object GetValue(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Parameter name |
Returns
Type | Description |
---|---|
Object | Parameter value |
GetValue<T>(String)
Returns parameter value
Declaration
public T GetValue<T>(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Parameter name |
Returns
Type | Description |
---|---|
T | Parameter value |
Type Parameters
Name | Description |
---|---|
T | Parameter type |