Class PostgresSqlWrapper
Inheritance
System.Object
PostgresSqlWrapper
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 class PostgresSqlWrapper : RelationalSqlWrapper<PostgresSqlOptions>, IWrapper, IDisposable
Constructors
| Improve this Doc View SourcePostgresSqlWrapper(IConfigLoader, ISerializerManager, PostgresSqlOptions)
Creates a new instance of ths AbstractWrapper<TOptions>, implementing
the IWrapper contract.
Declaration
public PostgresSqlWrapper(IConfigLoader config, ISerializerManager serializer, PostgresSqlOptions options)
Parameters
Type | Name | Description |
---|---|---|
IConfigLoader | config | The result adapter root inputConfiguration object. |
ISerializerManager | serializer | The serializer endpoint to access the model without any reflection. |
PostgresSqlOptions | options | The options object containing input/output specifics. |
Properties
| Improve this Doc View SourceConnection
Declaration
public override IDbConnection Connection { get; }
Property Value
Type | Description |
---|---|
System.Data.IDbConnection |
Overrides
Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<Mars.Interfaces.Model.Options.PostgresSqlOptions>.Connection
|
Improve this Doc
View Source
MigrationProvider
Declaration
public override ISchemaMigrationProvider MigrationProvider { get; }
Property Value
Type | Description |
---|---|
ISchemaMigrationProvider |
Overrides
Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<Mars.Interfaces.Model.Options.PostgresSqlOptions>.MigrationProvider
Methods
| Improve this Doc View SourceCreateBuilder()
Declaration
protected override DbConnectionStringBuilder CreateBuilder()
Returns
Type | Description |
---|---|
System.Data.Common.DbConnectionStringBuilder |
Overrides
Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<Mars.Interfaces.Model.Options.PostgresSqlOptions>.CreateBuilder()
|
Improve this Doc
View Source
GetEntityName(IOutputLogger)
Declaration
protected override object GetEntityName(IOutputLogger proxy)
Parameters
Type | Name | Description |
---|---|---|
IOutputLogger | proxy |
Returns
Type | Description |
---|---|
System.Object |
Overrides
Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<Mars.Interfaces.Model.Options.PostgresSqlOptions>.GetEntityName(Mars.Core.Data.IOutputLogger)
|
Improve this Doc
View Source
SaveSnapshot(Int64, IGeneratedLayerLogger)
Declaration
public override void SaveSnapshot(long currentTick, IGeneratedLayerLogger layerProxy)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | currentTick | |
IGeneratedLayerLogger | layerProxy |
Overrides
Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<Mars.Interfaces.Model.Options.PostgresSqlOptions>.SaveSnapshot(System.Int64, Mars.Core.Data.IGeneratedLayerLogger)
|
Improve this Doc
View Source
SaveSnapshot(Int64, IGeneratedTypeLogger)
This method applies the write operation on each entity associated to the
and
or can be override to keep control of the entity serialization.
In contrast to SaveSnapshotByType(Int64, IGeneratedTypeLogger) this method has already been checked, whether the
type
shall be serialized.
Declaration
public override void SaveSnapshot(long currentTick, IGeneratedTypeLogger typeLogger)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | currentTick | The current simulation tick |
IGeneratedTypeLogger | typeLogger | The considered entity type to write a snapshot for |
Overrides
Mars.Core.Data.Wrapper.Relational.RelationalSqlWrapper<Mars.Interfaces.Model.Options.PostgresSqlOptions>.SaveSnapshot(System.Int64, Mars.Core.Data.IGeneratedTypeLogger)
Implements
System.IDisposable