C# Class Elmah.OracleErrorLog

An ErrorLog implementation that uses Oracle as its backing store.
Inheritance: Elmah.ErrorLog
Afficher le fichier Open project: elmah/Elmah

Private Properties

Свойство Type Description
AddProviderSpecificTypeParameter IDbDataParameter
CreateOpenConnection DbConnection
GetDbProviderFactory DbProviderFactory
GetEnumValueOfAny object
GetProviderInfo ProviderInfo

Méthodes publiques

Méthode Description
GetError ( string id ) : ErrorLogEntry

Returns the specified error from the database, or null if it does not exist.

GetErrors ( int pageIndex, int pageSize, ICollection errorEntryList ) : int

Returns a page of errors from the databse in descending order of logged time.

Log ( Error error ) : string

Logs an error to the database.

Use the stored procedure called by this implementation to set a policy on how long errors are kept in the log. The default implementation stores all errors for an indefinite time.

OracleErrorLog ( System.Collections.IDictionary config ) : System

Initializes a new instance of the OracleErrorLog class using a dictionary of configured settings.

OracleErrorLog ( string connectionString ) : System

Initializes a new instance of the OracleErrorLog class to use a specific connection string for connecting to the database.

OracleErrorLog ( string connectionString, DbProviderFactory dbProviderFactory ) : System

Initializes a new instance of the OracleErrorLog class to use a specific connection string and provider for connecting to the database.

The only supported DbProviderFactory instances are those of Oracle.DataAccess.Client (ODP.NET) and System.Data.OracleClient. The supplied instance is not validated so any other provider will yield undefined behavior.

OracleErrorLog ( string connectionString, string schemaOwner ) : System

Initializes a new instance of the OracleErrorLog class to use a specific connection string for connecting to the database. An additional parameter specifies the schema owner.

OracleErrorLog ( string connectionString, string schemaOwner, DbProviderFactory dbProviderFactory ) : System

Initializes a new instance of the OracleErrorLog class to use a specific connection string and provider for connecting to the database. An additional parameter specifies the schema owner.

The only supported DbProviderFactory instances are those of Oracle.DataAccess.Client (ODP.NET) and System.Data.OracleClient. The supplied instance is not validated so any other provider will yield undefined behavior.

Private Methods

Méthode Description
AddProviderSpecificTypeParameter ( IDbCommand command, string parameterName, object dbType ) : IDbDataParameter
CreateOpenConnection ( ) : DbConnection
GetDbProviderFactory ( string providerName ) : DbProviderFactory
GetEnumValueOfAny ( Type enumType ) : object
GetProviderInfo ( DbProviderFactory dbProviderFactory ) : ProviderInfo

Method Details

GetError() public méthode

Returns the specified error from the database, or null if it does not exist.
public GetError ( string id ) : ErrorLogEntry
id string
Résultat ErrorLogEntry

GetErrors() public méthode

Returns a page of errors from the databse in descending order of logged time.
public GetErrors ( int pageIndex, int pageSize, ICollection errorEntryList ) : int
pageIndex int
pageSize int
errorEntryList ICollection
Résultat int

Log() public méthode

Logs an error to the database.
Use the stored procedure called by this implementation to set a policy on how long errors are kept in the log. The default implementation stores all errors for an indefinite time.
public Log ( Error error ) : string
error Error
Résultat string

OracleErrorLog() public méthode

Initializes a new instance of the OracleErrorLog class using a dictionary of configured settings.
public OracleErrorLog ( System.Collections.IDictionary config ) : System
config System.Collections.IDictionary
Résultat System

OracleErrorLog() public méthode

Initializes a new instance of the OracleErrorLog class to use a specific connection string for connecting to the database.
public OracleErrorLog ( string connectionString ) : System
connectionString string
Résultat System

OracleErrorLog() public méthode

Initializes a new instance of the OracleErrorLog class to use a specific connection string and provider for connecting to the database.
The only supported DbProviderFactory instances are those of Oracle.DataAccess.Client (ODP.NET) and System.Data.OracleClient. The supplied instance is not validated so any other provider will yield undefined behavior.
public OracleErrorLog ( string connectionString, DbProviderFactory dbProviderFactory ) : System
connectionString string
dbProviderFactory DbProviderFactory
Résultat System

OracleErrorLog() public méthode

Initializes a new instance of the OracleErrorLog class to use a specific connection string for connecting to the database. An additional parameter specifies the schema owner.
public OracleErrorLog ( string connectionString, string schemaOwner ) : System
connectionString string
schemaOwner string
Résultat System

OracleErrorLog() public méthode

Initializes a new instance of the OracleErrorLog class to use a specific connection string and provider for connecting to the database. An additional parameter specifies the schema owner.
The only supported DbProviderFactory instances are those of Oracle.DataAccess.Client (ODP.NET) and System.Data.OracleClient. The supplied instance is not validated so any other provider will yield undefined behavior.
public OracleErrorLog ( string connectionString, string schemaOwner, DbProviderFactory dbProviderFactory ) : System
connectionString string
schemaOwner string
dbProviderFactory DbProviderFactory
Résultat System