Пример #1
0
        internal static IDBFunctions CreateDBFunctions(DBAdapters dba)
        {
            IDBFunctions func = null;

            switch (dba)
            {
            case DBAdapters.DB2:
                func = new DB2Functions();
                break;

            case DBAdapters.SQLSERVER:
                func = new SQLServerFunctions();
                break;

            case DBAdapters.ODBC:
                func = new OdbcFunctions();
                break;

            case DBAdapters.WS:
                func = new WSFunctions();
                break;
            }

            return(func);
        }
Пример #2
0
 static void CallMethods(IDBFunctions o)
 {
     o.Insert();
 }