Example #1
0
        public DBConnection(COREobject core, bool isShared = false)
        {
            _core             = core;
            IsShared          = isShared;
            _type             = Application?.DB_Type ?? Entitron.DefaultDBType;
            _connectionString = (Application != null && !string.IsNullOrEmpty(Application.DB_ConnectionString))
                    ? Application.DB_ConnectionString
                    : Entitron.EntitronConnectionString(_type);

            _tablesToSave = new HashSet <DBTable>();
            _commandSet   = DBCommandSet.GetDBCommandSet(_type);
        }