Search Results for

    Show / Hide Table of Contents

    Class DatabaseInfo

    DatabaseInfo stores information about database connectivity, a Report have a collection of connection definitions. Each connection can use diferent connectivity technology (database providers). ReportDatabaseInfos

    Inheritance
    object
    ReportItem
    DatabaseInfo
    Implements
    IDisposable
    ICloneable
    Inherited Members
    ReportItem.SetReport(BaseReport)
    ReportItem.Dispose()
    ReportItem.Name
    ReportItem.Report
    ReportItem.ClassName
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Reporting
    Assembly: Reportman.Reporting.dll
    Syntax
    public class DatabaseInfo : ReportItem, IDisposable, ICloneable

    Constructors

    View Source

    DatabaseInfo()

    Constructor

    Declaration
    public DatabaseInfo()

    Fields

    View Source

    CustomProviderFactories

    Declaration
    public static SortedList<string, DbProviderFactory> CustomProviderFactories
    Field Value
    Type Description
    SortedList<string, DbProviderFactory>
    View Source

    FIREBIRD_PROVIDER2

    Declaration
    public static string FIREBIRD_PROVIDER2
    Field Value
    Type Description
    string
    View Source

    MYSQL_PROVIDER

    Declaration
    public static string MYSQL_PROVIDER
    Field Value
    Type Description
    string
    View Source

    SQLITE_PROVIDER

    Declaration
    public static string SQLITE_PROVIDER
    Field Value
    Type Description
    string
    View Source

    SqlExecuter

    Declaration
    public IDbCommandExecuter SqlExecuter
    Field Value
    Type Description
    IDbCommandExecuter
    View Source

    TransIsolation

    Default isolation level if a transaction have not assigned, all the querys related to this connection will run inside the same transaction

    Declaration
    public IsolationLevel TransIsolation
    Field Value
    Type Description
    IsolationLevel
    View Source

    Transaction

    You can assign a transaction, so this transaction will be used instead a default created one

    Declaration
    public IDbTransaction Transaction
    Field Value
    Type Description
    IDbTransaction

    Properties

    View Source

    Alias

    DatabaseInfo item name

    Declaration
    public string Alias { get; set; }
    Property Value
    Type Description
    string
    View Source

    ConfigFile

    Optional DBX connection configuration file override.

    Declaration
    public string ConfigFile { get; set; }
    Property Value
    Type Description
    string
    View Source

    Connection

    You can assign a Connection, so this connection will be used, if you provide a connection, all the settings inside DatabaseInfo related to perform connection will be ignored and all querys will be executed against the provided connection

    Declaration
    [JsonIgnore]
    [JsonIgnore]
    public IDbConnection Connection { get; set; }
    Property Value
    Type Description
    IDbConnection
    View Source

    ConnectionString

    Connection string, for ADO and .Net drivers

    Declaration
    public string ConnectionString { get; set; }
    Property Value
    Type Description
    string
    View Source

    CurrentTransaction

    Obtain current active transaction to execute querys

    Declaration
    [JsonIgnore]
    [JsonIgnore]
    public IDbTransaction CurrentTransaction { get; }
    Property Value
    Type Description
    IDbTransaction
    View Source

    DotNetDriver

    DotNet driver type

    Declaration
    public DotNetDriverType DotNetDriver { get; set; }
    Property Value
    Type Description
    DotNetDriverType
    View Source

    Driver

    DatabaseInfo driver type

    Declaration
    public DriverType Driver { get; set; }
    Property Value
    Type Description
    DriverType
    View Source

    HttpAgentApiKey

    API Key for HttpAgent authentication (alternative to Token)

    Declaration
    public string HttpAgentApiKey { get; set; }
    Property Value
    Type Description
    string
    View Source

    HttpAgentBaseUrl

    Base URL for HttpAgent API (e.g., "https://api.reportman.es")

    Declaration
    public string HttpAgentBaseUrl { get; set; }
    Property Value
    Type Description
    string
    View Source

    HttpAgentHubDatabaseId

    Hub Database Id for HttpAgent - identifies the database on the remote agent

    Declaration
    public long HttpAgentHubDatabaseId { get; set; }
    Property Value
    Type Description
    long
    View Source

    HttpAgentToken

    Bearer token for HttpAgent authentication (alternative to ApiKey)

    Declaration
    public string HttpAgentToken { get; set; }
    Property Value
    Type Description
    string
    View Source

    LoadParams

    Load connection parameters from the configured/public DBX connection file.

    Declaration
    public bool LoadParams { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ProviderFactory

    Provider factory, only for .Net 2.x driver

    Declaration
    public string ProviderFactory { get; set; }
    Property Value
    Type Description
    string
    View Source

    ReportField

    Report field when loading report items from a connection

    Declaration
    public string ReportField { get; set; }
    Property Value
    Type Description
    string
    View Source

    ReportGroupsTable

    Report groups table when loading report items from a connection

    Declaration
    public string ReportGroupsTable { get; set; }
    Property Value
    Type Description
    string
    View Source

    ReportSearchField

    Report search field when loading report items from a connection

    Declaration
    public string ReportSearchField { get; set; }
    Property Value
    Type Description
    string
    View Source

    ReportTable

    Report table name when loading report items from a connection

    Declaration
    public string ReportTable { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Clone()

    Clone the DatabaseInfo item

    Declaration
    public object Clone()
    Returns
    Type Description
    object

    A new DatabaseInfo item with same data as the original

    View Source

    Clone(Report)

    Clone the DatabaseInfo item

    Declaration
    public DatabaseInfo Clone(Report areport)
    Parameters
    Type Name Description
    Report areport

    Report to assign to the item

    Returns
    Type Description
    DatabaseInfo

    A new DatabaseInfo item with same data as the original

    View Source

    Connect()

    Connect to the database

    Declaration
    public void Connect()
    View Source

    DisConnect()

    Disconnect from database, also dispose any transaction

    Declaration
    public void DisConnect()
    View Source

    GetClassName()

    Internal function to determine the object type name

    Declaration
    protected override string GetClassName()
    Returns
    Type Description
    string

    Object type name

    Overrides
    ReportItem.GetClassName()
    View Source

    GetDataReaderFromSQL(string, string, Params, bool)

    Obrains a IDataReader from a sql sentence

    Declaration
    public IDataReader GetDataReaderFromSQL(string sqlsentence, string dataalias, Params aparams, bool onlyexec)
    Parameters
    Type Name Description
    string sqlsentence

    A valid sql sentence

    string dataalias

    Parameters related to this alias will be used

    Params aparams

    Report parameters

    bool onlyexec

    Execute only, not open the query

    Returns
    Type Description
    IDataReader

    A valid IDataReader

    View Source

    GetDriverDescriptions()

    Declaration
    public static List<string> GetDriverDescriptions()
    Returns
    Type Description
    List<string>
    View Source

    ResolveHttpAgentConnectionParamsFromConfig()

    Declaration
    public void ResolveHttpAgentConnectionParamsFromConfig()

    Implements

    IDisposable
    ICloneable
    • View Source
    In this article
    Back to top Generated by DocFX