Exemplo n.º 1
0
        void Init()
        {
            Settings = Settings ?? new Settings();
            var connString = ConnectionStringParser.ParseConnectionString(Settings.ConnString);

            if (Settings.DbVendor.ToLower() == Oracle)
            {
                _db = new GenericDatabase(connString, new OracleClientFactory());
            }
            else
            {
                _db = new SqlDatabase(connString);
            }
        }