Exemple #1
0
        protected IDataAdapter GetAdapter(string adpName)
        {
            ToCastToComponenet InstanceOfComponent;

            InstanceOfComponent = (ToCastToComponenet)ObjectTools.InstanceOfStringClass(this.AssemblyName, this.GenerateAdapterClass);
            IDataAdapter adp = (IDataAdapter)InstanceOfComponent.GetDataComponent(adpName);

            return(adp);
        }
Exemple #2
0
        protected IDbCommand GetCommand(string cmdName)
        {
            ToCastToComponenet InstanceOfComponent;

            InstanceOfComponent = (ToCastToComponenet)ObjectTools.InstanceOfStringClass(this.AssemblyName, this.GenerateAdapterClass);
            IDbCommand cmd = (IDbCommand)InstanceOfComponent.GetDataComponent(cmdName);

            return(cmd);
        }