public static SyncDBManager createSyncDBManager(IDictionary<String, String> preferences)
        {
            String dbms = preferences["dbms"];

            if (dbms == SQLSERVER)
            {
                SqlServerManager manager = new SqlServerManager(preferences);
                return manager;
            }
            else if (dbms == SQLCE)
            {
                return new SqlCeManager(preferences);
            }
            else
            {
                throw new InvalidOperationException();
            }
        }
Exemplo n.º 2
0
        public static SyncDBManager createSyncDBManager(IDictionary <String, String> preferences)
        {
            String dbms = preferences["dbms"];

            if (dbms == SQLSERVER)
            {
                SqlServerManager manager = new SqlServerManager(preferences);
                return(manager);
            }
            else if (dbms == SQLCE)
            {
                return(new SqlCeManager(preferences));
            }
            else
            {
                throw new InvalidOperationException();
            }
        }