Class BaseStoredProcedure
Inheritance
System.Object
BaseStoredProcedure
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Terrasoft.Core.dll
Syntax
public abstract class BaseStoredProcedure : IParametrizedQuery, ISqlGenerating, IDBReadableCommand, ICloneable
Constructors
BaseStoredProcedure(BaseStoredProcedure)
Declaration
protected BaseStoredProcedure(BaseStoredProcedure source)
Parameters
BaseStoredProcedure(UserConnection)
Declaration
protected BaseStoredProcedure(UserConnection userConnection)
Parameters
BaseStoredProcedure(UserConnection, String)
Declaration
protected BaseStoredProcedure(UserConnection userConnection, string name)
Parameters
Type |
Name |
Description |
UserConnection |
userConnection |
|
System.String |
name |
|
Properties
BuildParametersAsValue
Declaration
public bool BuildParametersAsValue { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
CachedSqlText
Declaration
public string CachedSqlText { get; set; }
Property Value
Type |
Description |
System.String |
|
DBEngine
Declaration
protected DBEngine DBEngine { get; }
Property Value
Expressions
Declaration
public QueryColumnExpressionCollection Expressions { get; }
Property Value
HasExpressions
Declaration
public bool HasExpressions { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasParameters
Declaration
public bool HasParameters { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsCacheEnabled
Declaration
public bool IsCacheEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
PackageName
Declaration
public string PackageName { get; set; }
Property Value
Type |
Description |
System.String |
|
Parameters
Declaration
public QueryParameterCollection Parameters { get; }
Property Value
UserConnection
Declaration
protected UserConnection UserConnection { get; set; }
Property Value
Methods
BuildSqlText(StringBuilder)
Declaration
public abstract void BuildSqlText(StringBuilder sb)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
sb |
|
Clone()
Declaration
public abstract object Clone()
Returns
Type |
Description |
System.Object |
|
ExecuteReader(DBExecutor)
Declaration
public virtual IDataReader ExecuteReader(DBExecutor dbExecutor)
Parameters
Returns
Type |
Description |
System.Data.IDataReader |
|
ExecuteScalar<TResult>()
Declaration
public virtual TResult ExecuteScalar<TResult>()
Returns
Type Parameters
ExecuteScalar<TResult>(DBExecutor)
Declaration
public virtual TResult ExecuteScalar<TResult>(DBExecutor dbExecutor)
Parameters
Returns
Type Parameters
GetSqlText()
Declaration
public abstract string GetSqlText()
Returns
Type |
Description |
System.String |
|
GetUsingParameters()
Declaration
public QueryParameterCollection GetUsingParameters()
Returns
InitializeParameters()
Declaration
public void InitializeParameters()
ResetCachedSqlText()
Declaration
public void ResetCachedSqlText()
ResetParameters()
Declaration
public void ResetParameters()
WithOutputParameter(String, DataValueType)
Declaration
public BaseStoredProcedure WithOutputParameter(string name, DataValueType type)
Parameters
Returns
WithParameter(IEnumerable<IQueryColumnExpressionConvertible>)
Declaration
public BaseStoredProcedure WithParameter(IEnumerable<IQueryColumnExpressionConvertible> expressions)
Parameters
Returns
WithParameter(Stream)
Declaration
public BaseStoredProcedure WithParameter(Stream value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
value |
|
Returns
WithParameter(Object)
Declaration
public BaseStoredProcedure WithParameter(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
WithParameter(String, Stream)
Declaration
public BaseStoredProcedure WithParameter(string name, Stream value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.IO.Stream |
value |
|
Returns
WithParameter(String, Object)
Declaration
public BaseStoredProcedure WithParameter(string name, object value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
Returns
WithParameter(IQueryColumnExpressionConvertible)
Declaration
public BaseStoredProcedure WithParameter(IQueryColumnExpressionConvertible expression)
Parameters
Returns
WithParameter(QueryColumnExpression)
Declaration
public BaseStoredProcedure WithParameter(QueryColumnExpression columnExpression)
Parameters
Returns
WithParameter(QueryParameter)
Declaration
public BaseStoredProcedure WithParameter(QueryParameter parameter)
Parameters
Returns
WithParameters(IEnumerable<QueryColumnExpression>)
Declaration
public BaseStoredProcedure WithParameters(IEnumerable<QueryColumnExpression> columnExpressions)
Parameters
Returns
WithParameters(IEnumerable<QueryParameter>)
Declaration
public BaseStoredProcedure WithParameters(IEnumerable<QueryParameter> parameters)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<QueryParameter> |
parameters |
|
Returns
WithVarParameter(String, Stream)
Declaration
public BaseStoredProcedure WithVarParameter(string name, Stream value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.IO.Stream |
value |
|
Returns
WithVarParameter(String, Object, DataValueType)
Declaration
public BaseStoredProcedure WithVarParameter(string name, object value, DataValueType type)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
DataValueType |
type |
|
Returns
Implements
System.ICloneable
Extension Methods