• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • Mars.Core
      • DependencyRegistrationCore
    • Mars.Core.Data
      • AbstractConfigLoader
      • AbstractEntityManager
      • AgentManagerImpl
      • DomainDataMediatorImpl
      • EntityManagerImpl
      • IAgentManager
      • IEntityManager
      • IEntityMapping
      • IGeneratedEntityLogger
      • IGeneratedLayerLogger
      • IGeneratedLogger<TModel>
      • IGeneratedTypeLogger
      • IModelCompiler
      • IOutputLogger
      • IPlatformSelector
      • ISchemaMigrationProvider
      • ISerializerManager
      • PlatformSelectorImpl
    • Mars.Core.Data.Compiler
      • AbstractEntityMapper
      • AbstractJitMapper
      • AbstractLayerMapper
      • AbstractMapper<TModel>
      • AbstractTypeMapper
      • RoslynCompilerUtils
    • Mars.Core.Data.Entities
      • CircleFilter
      • Condition
      • ConjunctiveWhere
      • DataFrame
      • DisjunctiveWhere
      • EqualityCondition
      • IntersectionFilter
      • ISelection
      • NearestFilter
      • Query
      • WindowFilter
      • WithinFilter
    • Mars.Core.Data.Exceptions
      • AgentInitializationException
    • Mars.Core.Data.Mapping
      • DefaultSourceProvider
      • ReflectiveMapping
    • Mars.Core.Data.Wrapper
      • AbstractOperationWrapper
      • AbstractWrapper
      • AbstractWrapper<TOptions>
      • GlobalRestrictions
      • ICircleQueryOperation
      • IIntersectionOperation
      • ILookupOperation
      • INearestOperation
      • IOperation
      • IPlatform
      • IQueryOperation
      • IWindowQueryOperation
      • IWithinOperation
      • IWrapper
      • KnnGraphWrapper
      • PostGisWrapper
    • Mars.Core.Data.Wrapper.Document
      • IMongoConnection
      • IMongoWrapper
      • MongoDbIteratorHelper
      • MongoDbWrapper
    • Mars.Core.Data.Wrapper.File
      • AbstractFileWrapper<TOptions>
      • AscWrapper
      • GeoJsonWrapper
    • Mars.Core.Data.Wrapper.Memory
      • DataTableWrapper
      • GeoHashTrieWrapper
      • KdTreeWrapper
      • TripPosition
      • TripPositionCoordinateConverter
      • TripsCollection
      • TripsLineConverter
      • TripsTrajectoryWrapper
    • Mars.Core.Data.Wrapper.Relational
      • AbstractRelationalConnection
      • PostgresSqlDbConnection
      • PostgresSqlWrapper
      • RelationalMapperException
      • RelationalSqlWrapper<TOptions>
      • SqliteDbConnection
      • SqliteWrapper
    • Mars.Core.Data.Wrapper.Stream
      • MqttWrapper
      • SimulationTypeInfo
    • Mars.Core.Executor
      • IRuntimeModel
      • ISimulationProgress
      • IStepExecutor
    • Mars.Core.Executor.Entities
      • Parametrization
      • StepParam
    • Mars.Core.Executor.Implementation
      • RuntimeModelImpl
      • SimulationProgressImpl
      • StepExecutionUseCase
    • Mars.Core.Model
      • IConfigLoader
      • IModelContainer
      • IModelResolver
    • Mars.Core.Model.Entities
      • LayerInstanceContainer
    • Mars.Core.Model.Exceptions
      • InvalidMappingException
      • MissingConstructorException
      • ModelResolutionException
      • ValidationException
    • Mars.Core.Model.Implementation
      • DependencyBuilder
      • MappingHelper
      • ModelContainer
      • ValidationIssueLevel
      • ValidationResult
      • Validator
    • Mars.Core.Simulation
      • ISimulation
      • ISimulationControl
    • Mars.Core.Simulation.Entities
      • SimulationRestartArgs
      • SimulationWorkflowState

    Class AbstractRelationalConnection

    Inheritance
    IDbConnection
    AbstractRelationalConnection
    PostgresSqlDbConnection
    SqliteDbConnection
    Namespace: Mars.Core.Data.Wrapper.Relational
    Assembly: Mars.Core.dll
    Syntax
    public abstract class AbstractRelationalConnection : IDbConnection

    Properties

    ConnectionString

    Gets or sets the string used to open a database.
    Declaration
    public string ConnectionString { get; set; }
    Property Value
    Type Description
    System.String A string containing connection settings.

    ConnectionTimeout

    Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
    Declaration
    public int ConnectionTimeout { get; }
    Property Value
    Type Description
    System.Int32 The time (in seconds) to wait for a connection to open. The default value is 15 seconds.

    Database

    Gets the name of the current database or the database to be used after a connection is opened.
    Declaration
    public string Database { get; }
    Property Value
    Type Description
    System.String The name of the current database or the name of the database to be used once a connection is open. The default value is an empty string.

    State

    Gets the current state of the connection.
    Declaration
    public ConnectionState State { get; }
    Property Value
    Type Description
    ConnectionState One of the System.Data.ConnectionState values.

    Methods

    BeginTransaction()

    Begins a database transaction.
    Declaration
    public IDbTransaction BeginTransaction()
    Returns
    Type Description
    IDbTransaction An object representing the new transaction.

    BeginTransaction(IsolationLevel)

    Begins a database transaction with the specified System.Data.IsolationLevel value.
    Declaration
    public IDbTransaction BeginTransaction(IsolationLevel il)
    Parameters
    Type Name Description
    IsolationLevel il One of the System.Data.IsolationLevel values.
    Returns
    Type Description
    IDbTransaction An object representing the new transaction.

    ChangeDatabase(String)

    Changes the current database for an open Connection object.
    Declaration
    public void ChangeDatabase(string databaseName)
    Parameters
    Type Name Description
    System.String databaseName The name of the database to use in place of the current database.

    Close()

    Closes the connection to the database.
    Declaration
    public void Close()

    CreateCommand()

    Creates and returns a Command object associated with the connection.
    Declaration
    public IDbCommand CreateCommand()
    Returns
    Type Description
    IDbCommand A Command object associated with the connection.

    CreateConnection()

    Creates the database-specific connection
    Declaration
    protected abstract IDbConnection CreateConnection()
    Returns
    Type Description
    IDbConnection

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
    Declaration
    public void Dispose()

    Open()

    Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.
    Declaration
    public void Open()
    Back to top Copyright © MARS GROUP.
    HAW Hamburg