Ejemplo n.º 1
0
 public static DALContext OpenDALContext(MySqlConnection EstablishedConnection, MySqlTransaction SqlTransaction = null)
 => CurrentContext = CurrentContext ?? new DALContext(EstablishedConnection, SqlTransaction: SqlTransaction);
Ejemplo n.º 2
0
 public static void CloseDALContext()
 {
     CurrentContext?.Dispose();
     CurrentContext = null;
 }
Ejemplo 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);