Cuemon .NET Framework
DataManager Class Members
Properties  Methods 


The following tables list the members exposed by DataManager.

Protected Constructors
 NameDescription
Protected ConstructorDataManager Constructor  
Top
Public Properties
 NameDescription
Public PropertyConnectionStringGets the string used to open the connection.  
Public Propertystatic (Shared in Visual Basic)ConnectionStringSettingsGets the connection string data for the current application's default configuration.  
Public Propertystatic (Shared in Visual Basic)DefaultConnectionStringGets or sets the default connection string.  
Public PropertyEnableTransientFaultRecoveryGets or sets a value indicating whether transient faults should be attempted gracefully recovered. Default is true.  
Public PropertyRetryAttemptsGets or sets the amount of retry attempts for transient faults. Default value is specified by Cuemon.TransientFaultUtility.DefaultRetryAttempts.  
Top
Public Methods
 NameDescription
Public MethodCloneCreates a new object that is a copy of the current instance.  
Public MethodExecuteExecutes the command statement and returns the number of rows affected.  
Public MethodExecuteExistsExecutes the command statement and returns true if one or more records exists; otherwise false.  
Public MethodExecuteIdentityDecimalExecutes the command statement and returns an identity value as decimal.  
Public MethodExecuteIdentityInt32Executes the command statement and returns an identity value as int.  
Public MethodExecuteIdentityInt64Executes the command statement and returns an identity value as long.  
Public MethodExecuteReaderExecutes the command statement and returns an object supporting the IDataReader interface.  
Public MethodExecuteScalarExecutes the command statement, and returns the value from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsOverloaded. Executes the command statement, and returns the value as TResult from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsBooleanExecutes the command statement, and returns the value as System.Boolean from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsByteExecutes the command statement, and returns the value as System.Byte from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsDateTimeExecutes the command statement, and returns the value as System.DateTime from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsDecimalExecutes the command statement, and returns the value as System.Decimal from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsDoubleExecutes the command statement, and returns the value as System.Double from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsGuidExecutes the command statement, and returns the value as System.Guid from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsInt16Executes the command statement, and returns the value as System.Int16 from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsInt32Executes the command statement, and returns the value as System.Int32 from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsInt64Executes the command statement, and returns the value as System.Int64 from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsSByteExecutes the command statement, and returns the value as System.SByte from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsStringExecutes the command statement, and returns the value as System.String from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsTypeOverloaded. Executes the command statement, and returns the value as the specified returnType from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsUInt16Executes the command statement, and returns the value as System.UInt16 from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsUInt32Executes the command statement, and returns the value as System.UInt32 from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteScalarAsUInt64Executes the command statement, and returns the value as System.UInt64 from the first column of the first row in the result set. Additional columns or rows are ignored.  
Public MethodExecuteXmlDocumentExecutes the command statement and returns an XmlDocument object.  
Public MethodExecuteXmlReaderExecutes the command statement and returns an XmlReader object.  
Public MethodExecuteXmlStringExecutes the command statement and returns a string object with the retrieved XML.  
Public MethodExecuteXPathDocumentExecutes the command statement and returns an IXPathNavigable object.  
Public Methodstatic (Shared in Visual Basic)GetDefaultDataConnectionElementFromConfigurationFileGets the default data connection element from the calling application configuration file.  
Public Methodstatic (Shared in Visual Basic)GetReaderColumnNamesCreates and returns a sequence of column names resolved from the specified reader.  
Public Methodstatic (Shared in Visual Basic)GetReaderColumnsCreates and returns a KeyValuePair sequence of column names and values resolved from the specified reader.  
Public Methodstatic (Shared in Visual Basic)GetReaderColumnsAsDictionaryCreates and returns a IDictionary of column names and values resolved from the specified reader.  
Public Methodstatic (Shared in Visual Basic)GetReaderColumnValuesCreates and returns a sequence of column values resolved from the specified reader.  
Public Methodstatic (Shared in Visual Basic)ParseDbTypeParses and returns a System.Type equivalent of dbType.  
Public Methodstatic (Shared in Visual Basic)ReaderToEnumerableConverts the specified reader to a sequence of System.Data.IDataRecord objects.  
Public Methodstatic (Shared in Visual Basic)ReaderToStreamConverts the given System.Data.IDataReader compatible object to a stream. Note: IDataReader must return only one field (for instance, a XML field), otherwise an exception is thrown!  
Public Methodstatic (Shared in Visual Basic)ReaderToStringConverts the given System.Data.IDataReader compatible object to a string. Note: IDataReader must return only one field, otherwise an exception is thrown!  
Top
Protected Methods
 NameDescription
Protected MethodExecuteCommandCoreCore method for executing all commands.  
Protected MethodGetCommandCoreGets the command object to be used by all execute related methods.  
Protected MethodIsTransientFaultDetermines whether the specified exception contains clues that would suggest a transient fault.  
Protected MethodTransientFaultRecoveryWaitTimeSpecifies the amount of time to wait for a transient fault to recover gracefully before trying a new attempt.  
Top
See Also

Reference

DataManager Class
Cuemon.Data Namespace

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback