protected IDataAdapter GetAdapter(string adpName) { ToCastToComponenet InstanceOfComponent; InstanceOfComponent = (ToCastToComponenet)ObjectTools.InstanceOfStringClass(this.AssemblyName, this.GenerateAdapterClass); IDataAdapter adp = (IDataAdapter)InstanceOfComponent.GetDataComponent(adpName); return(adp); }
protected IDbCommand GetCommand(string cmdName) { ToCastToComponenet InstanceOfComponent; InstanceOfComponent = (ToCastToComponenet)ObjectTools.InstanceOfStringClass(this.AssemblyName, this.GenerateAdapterClass); IDbCommand cmd = (IDbCommand)InstanceOfComponent.GetDataComponent(cmdName); return(cmd); }