• MARS Website
  • 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
    • ISnapshot
    • 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
System.Object
AbstractRelationalConnection
PostgresSqlDbConnection
SqliteDbConnection
Implements
System.Data.IDbConnection
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Core.Data.Wrapper.Relational
Assembly: Mars.Core.dll
Syntax
public abstract class AbstractRelationalConnection : IDbConnection, IDisposable

Properties

| Improve this Doc View Source

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.
| Improve this Doc View Source

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.
| Improve this Doc View Source

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.
| Improve this Doc View Source

State

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

Methods

| Improve this Doc View Source

BeginTransaction()

Begins a database transaction.
Declaration
public IDbTransaction BeginTransaction()
Returns
Type Description
System.Data.IDbTransaction An object representing the new transaction.
| Improve this Doc View Source

BeginTransaction(IsolationLevel)

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

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.
| Improve this Doc View Source

Close()

Closes the connection to the database.
Declaration
public void Close()
| Improve this Doc View Source

CreateCommand()

Creates and returns a Command object associated with the connection.
Declaration
public IDbCommand CreateCommand()
Returns
Type Description
System.Data.IDbCommand A Command object associated with the connection.
| Improve this Doc View Source

CreateConnection()

Creates the database-specific connection
Declaration
protected abstract IDbConnection CreateConnection()
Returns
Type Description
System.Data.IDbConnection
| Improve this Doc View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
| Improve this Doc View Source

Open()

Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.
Declaration
public void Open()

Implements

System.Data.IDbConnection
System.IDisposable

Extension Methods

Serializer.Save<T>(T, out Byte[], SerializerCompression)
Serializer.Save<T>(T, Stream, SerializerCompression)
Serializer.Save<T>(T, BinaryFormatter, Stream, SerializerCompression)
Serializer.Save<T>(T, String, SerializerCompression)
Serializer.Save<T>(T, String)
Matrix.Concatenate<T>(T, T[])
Matrix.Replace<T>(T, Object, Object)
DomainDataImporter.Import(Object, InputConfiguration)
ObjectSerialize.Serialize(Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg