Esempio n. 1
0
 public static DALContext OpenDALContext(MySqlConnection EstablishedConnection, MySqlTransaction SqlTransaction = null)
 => CurrentContext = CurrentContext ?? new DALContext(EstablishedConnection, SqlTransaction: SqlTransaction);
Esempio n. 2
0
 public static void CloseDALContext()
 {
     CurrentContext?.Dispose();
     CurrentContext = null;
 }
Esempio n. 3
0
 //***************** DAL Context *****************//
 public static DALContext OpenDALContext(Enum ConfigConnectionString, bool AllowUserVariables = false, bool AutomaticallyOpenConnection = true)
 => CurrentContext = CurrentContext ?? new DALContext(ConfigConnectionString, AllowUserVariables: AllowUserVariables, AutomaticallyOpenConnection: AutomaticallyOpenConnection);