Exemplo n.º 1
0
        private static IDbDataAdapter GetAdapter(EDtxReaderType connType, IDbCommand cmd)
        {
            IDbDataAdapter adapter = null;

            switch (connType)

            {
            case EDtxReaderType.FaircomAdapter:
                adapter = new CtreeSqlDataAdapter(cmd as CtreeSqlCommand);
                break;

            default:
            case EDtxReaderType.Adapter:
                adapter = new OdbcDataAdapter(cmd as OdbcCommand);
                break;
            }
            return(adapter);
        }
Exemplo n.º 2
0
        internal static IDbDataAdapter GetAdapter(EDtxReaderType connType, IDbCommand cmd)
        {
            IDbDataAdapter adapter = null;
            switch(connType)

            {
                case EDtxReaderType.FaircomAdapter:
                    adapter = new CtreeSqlDataAdapter(cmd as CtreeSqlCommand);
                    break;
                default:
                case EDtxReaderType.Adapter:
                    adapter = new OdbcDataAdapter(cmd as OdbcCommand);
                    break;
            }
            return adapter;
        }