Skip to content

GetAsync Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
Task<IDatabaseSession> GetAsync(DatabaseConfig config, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, CancellationToken ct = null)Obtain a database session asynchronously.
Task<IDatabaseSession> GetAsync(DatabaseType dbType, string connectionString, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, LogConfig logConfig = null)Obtain session connection to a database
Task<IDatabaseSession> GetAsync(string dbType, string connectionString, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, LogConfig logConfig = null)Obtain session connection to a database

Task<IDatabaseSession> GetAsync(DatabaseConfig config, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, CancellationToken ct = null) ​

csharp
Task<IDatabaseSession> GetAsync(DatabaseConfig config, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, CancellationToken ct = null)

Obtain a database session asynchronously.

Task<IDatabaseSession> GetAsync(DatabaseType dbType, string connectionString, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, LogConfig logConfig = null) ​

csharp
Task<IDatabaseSession> GetAsync(DatabaseType dbType, string connectionString, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, LogConfig logConfig = null)

Obtain session connection to a database

Task<IDatabaseSession> GetAsync(string dbType, string connectionString, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, LogConfig logConfig = null) ​

csharp
Task<IDatabaseSession> GetAsync(string dbType, string connectionString, ISqlGeneratorOptions sqlGeneratorOptions = null, string database = null, bool openConnection = null, LogConfig logConfig = null)

Obtain session connection to a database