Show / Hide Table of Contents

Class MySqlSession

MySQL implementation of database session.

Inheritance
System.Object
AddonBag
DbSession
DbSession<MySql.Data.MySqlClient.MySqlConnection, MySql.Data.MySqlClient.MySqlCommand, MySqlReader>
MySqlSession
Implements
System.IDisposable
Inherited Members
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.Connection
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.OpenConnectionAsync(CancellationToken)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.CloseConnection()
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.ExecuteNonQueryAsync(MySqlCommand, CancellationToken)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.GetCreateTableCommand(Model, Boolean)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.GetQueryCommand(DbQueryStatement)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.CreateReaderInvoker(Model, MySqlCommand)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.ExecuteReaderAsync(IDbSet, CancellationToken)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.CreateLogger()
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.SetLogger(Action<String>, LogCategory)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.GetInsertCommand(DbSelectStatement)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.GetUpdateCommand(DbSelectStatement)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.GetDeleteCommand(DbSelectStatement)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.TransactionCount
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.CurrentTransaction
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.BeginTransaction(String)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.BeginTransaction(Nullable<IsolationLevel>, String)
DbSession<MySqlConnection, MySqlCommand, MySqlReader>.PerformBeginTransaction(Nullable<IsolationLevel>, String)
DbSession.Dispose()
DbSession.Dispose(Boolean)
DbSession.Connection
DbSession.OpenConnectionAsync(CancellationToken)
DbSession.CloseConnection()
DbSession.GetTable<T>(DbTable<T>, String)
DbSession.CreateTempTableAsync<T>(CancellationToken)
DbSession.CreateTempTableAsync<T>(T, CancellationToken)
DbSession.CreateTempTableAsync<T>(Action<T>, CancellationToken)
DbSession.CreateTempTableAsync<T>(T, Action<T>, CancellationToken)
DbSession.CreateQuery<T>(Action<DbQueryBuilder, T>)
DbSession.CreateQuery<T>(T, Action<DbQueryBuilder, T>)
DbSession.CreateQuery<T>(Action<T>, Action<DbQueryBuilder, T>)
DbSession.CreateQuery<T>(T, Action<T>, Action<DbQueryBuilder, T>)
DbSession.CreateAggregateQuery<T>(Action<DbAggregateQueryBuilder, T>)
DbSession.CreateAggregateQuery<T>(T, Action<DbAggregateQueryBuilder, T>)
DbSession.CreateAggregateQuery<T>(Action<T>, Action<DbAggregateQueryBuilder, T>)
DbSession.CreateAggregateQuery<T>(T, Action<T>, Action<DbAggregateQueryBuilder, T>)
DbSession.SetLogger(Action<String>)
DbSession.SetLogger(Action<String>, LogCategory)
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: DevZest.Data.MySql
Assembly: DevZest.Data.MySql.dll
Syntax
public abstract class MySqlSession : DbSession<MySqlConnection, MySqlCommand, MySqlReader>, IDisposable

Constructors

Name Description
MySqlSession(MySqlConnection)

Initializes a new instance of MySqlSession.

Properties

Name Description
CurrentTransaction
MySqlVersion

Gets or sets the MySQL version.

TransactionCount

Methods

Name Description
AssignTempTableName(Model)
CreateMockDbAsync(CancellationToken)
CreateReaderInvoker(Model, MySqlCommand)
DeleteAsync<TSource, TTarget>(DataSet<TSource>, DbTable<TTarget>, CandidateKey, CancellationToken)
GetCreateTableCommand(Model, Boolean)
GetDeleteCommand(DbSelectStatement)
GetInsertCommand(DbSelectStatement)
GetMockTableName(String, Object)
GetQueryCommand(DbQueryStatement)
GetSqlString(DbQueryStatement)
GetUpdateCommand(DbSelectStatement)
InsertAsync<TSource, TTarget>(DataSet<TSource>, DbTable<TTarget>, Action<ColumnMapper, TSource, TTarget>, Boolean, CancellationToken)
InsertScalarAsync(DbSelectStatement, Boolean, CancellationToken)
JsonTable<T>(String, String)

Opens JSON string as DbSet.

PerformBeginTransaction(Nullable<IsolationLevel>, String)
UpdateAsync<TSource, TTarget>(DataSet<TSource>, DbTable<TTarget>, Action<ColumnMapper, TSource, TTarget>, CandidateKey, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest