Class StoredProcedure
SQL stored procedure
Inherited Members
Namespace: XData.Database.Adapter
Assembly: XData.docfx.dll
Syntax
public sealed class StoredProcedure : IEnumerable<QueryParam>, IEnumerable
Constructors
| Improve this Doc View SourceStoredProcedure(String, QueryParam[])
Procedure constructor
Declaration
public StoredProcedure(string name, params QueryParam[] par)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Procedure name |
| QueryParam[] | par | Parameters |
Properties
| Improve this Doc View SourceHint
Procedure hint
Declaration
public HintInfo Hint { get; set; }
Property Value
| Type | Description |
|---|---|
| HintInfo |
Item[Int32]
Query parameters by index
Declaration
public QueryParam this[int i] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | i | Parameter index |
Property Value
| Type | Description |
|---|---|
| QueryParam | Query parameter |
Item[String]
Procedure parameters by name
Declaration
public QueryParam this[string name] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Parameter name |
Property Value
| Type | Description |
|---|---|
| QueryParam | Procedure parameter |
Name
SQL stored procedure name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
ResultSets
Stored procedure result sets names
Declaration
public IList<string> ResultSets { get; }
Property Value
| Type | Description |
|---|---|
| IList<String> |
Methods
| Improve this Doc View SourceGetEnumerator()
Query parameters enumeration
Declaration
public IEnumerator<QueryParam> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<QueryParam> | Query parameters enumeration |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |
Overrides
Operators
| Improve this Doc View SourceImplicit(String to StoredProcedure)
Stored procedure name
Declaration
public static implicit operator StoredProcedure(string s)
Parameters
| Type | Name | Description |
|---|---|---|
| String | s | Procedure name |
Returns
| Type | Description |
|---|---|
| StoredProcedure | Stored procedure |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Query parameters enumeration
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator | Query parameters enumeration |