Example #1
0
 /// <summary>
 /// Creates a new DAORecordSet instance using the factory specified on the “factoryName” and the configuration provided by the other parameters.
 /// </summary>
 /// <param name="factoryName">The name of the factory to by use by this DAORecordsetHelper object (the name most exist on the configuration xml file).</param>
 /// <param name="rsType">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
 /// <param name="rsOption">The DAORecordsetOptionEnum of this DAORecordsetHelper object.</param>
 /// <param name="lockType">The DAOLockTypeEnum of this DAORecordsetHelper object.</param>
 public DAORecordSetHelper(String factoryName, DAORecordsetTypeEnum rsType, DAORecordsetOptionEnum rsOption, DAOLockTypeEnum lockType)
     : base(factoryName)
 {
     this.daoRSType   = rsType;
     this.daoRSOption = rsOption;
     this.daoLockType = lockType;
 }
Example #2
0
        /// <summary>
        /// Creates a new DAORecordsetHelper object using the “factoryName”, “type”, "options", "lockType"  and opens it by executing the query on the “SQLstr” using the connection object provided has parameter and load all results.
        /// </summary>
        /// <param name="SQLStr">The string containing the SQL query to be loaded into this DAORecodsetHelper object.</param>
        /// <param name="type">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
        /// <param name="options">The DAORecordsetOptionEnum of this DAORecordsetHelper object.</param>
        /// <param name="lockType">The DAOLockTypeEnum of this DAORecordsetHelper object.</param>
        /// <param name="connection">Connection object to be use by this DAORecordsetHelper.</param>
        /// <param name="factoryName">The name of the factory to by use by this DAORecordsetHelper object (the name most exist on the configuration xml file).</param>
        /// <returns>The new DAORecordsetHelper object.</returns>
        public static DAORecordSetHelper Open(string SQLStr, DAORecordsetTypeEnum type, DAORecordsetOptionEnum options, DAOLockTypeEnum lockType, DbConnection connection, string factoryName)
        {
            DAORecordSetHelper recordSet = new DAORecordSetHelper(factoryName, type, options, lockType);

            recordSet.Open(SQLStr, connection);
            return(recordSet);
        }
Example #3
0
        /// <summary>
        /// Creates and open a new DAORecordsetHelper using the same information of the current object and the type provided has parameter.
        /// </summary>
        /// <param name="rsType">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
        /// <returns>A new DAORecordset.</returns>
        public DAORecordSetHelper OpenRS(DAORecordsetTypeEnum rsType)
        {
            DAORecordSetHelper newRecordSet = new DAORecordSetHelper();

            newRecordSet.daoRSType        = rsType;
            newRecordSet.activeCommand    = this.activeCommand;
            newRecordSet.ActiveConnection = this.ActiveConnection;
            newRecordSet.DatabaseType     = this.DatabaseType;
            newRecordSet.ProviderFactory  = this.ProviderFactory;
            newRecordSet.Open();
            return(newRecordSet);
        }
Example #4
0
 /// <summary>
 /// Creates a new DAORecordsetHelper object using the “factoryName”, “type”, "options" and opens it by executing the query on the “SQLstr” using the connection object provided has parameter and load all results.
 /// </summary>
 /// <param name="SQLStr">The string containing the SQL query to be loaded into this DAORecodsetHelper object.</param>
 /// <param name="type">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
 /// <param name="options">The DAORecordsetOptionEnum of this DAORecordsetHelper object.</param>
 /// <param name="connection">Connection object to be use by this DAORecordsetHelper.</param>
 /// <param name="factoryName">The name of the factory to by use by this DAORecordsetHelper object (the name most exist on the configuration xml file).</param>
 /// <returns>The new DAORecordsetHelper object.</returns>
 public static DAORecordSetHelper Open(string SQLStr, DAORecordsetTypeEnum type, DAORecordsetOptionEnum options, DbConnection connection, string factoryName)
 {
     // Type not used.
     // Options not used.
     return(Open(SQLStr, connection, factoryName));
 }
Example #5
0
 /// <summary>
 /// Creates and open a new DAORecordsetHelper using the same information of the current object and the type provided has parameter.
 /// </summary>
 /// <param name="rsType">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
 /// <param name="rsOptions">The DAORecordsetOptionEnum of this DAORecordsetHelper object.</param>
 /// <returns>A new DAORecordset.</returns>
 public DAORecordSetHelper OpenRS(DAORecordsetTypeEnum rsType, DAORecordsetOptionEnum rsOptions)
 {
     DAORecordSetHelper newRecordSet = new DAORecordSetHelper();
     newRecordSet.daoRSType = rsType;
     newRecordSet.daoRSOption = rsOptions;
     newRecordSet.activeCommand = this.activeCommand;
     newRecordSet.ActiveConnection = this.ActiveConnection;
     newRecordSet.DatabaseType = this.DatabaseType;
     newRecordSet.ProviderFactory = this.ProviderFactory;
     newRecordSet.Open();
     return newRecordSet;
 }
Example #6
0
 /// <summary>
 /// Creates a new DAORecordsetHelper object using the “factoryName”, “type”, "options", "lockType"  and opens it by executing the query on the “SQLstr” using the connection object provided has parameter and load all results.
 /// </summary>
 /// <param name="SQLStr">The string containing the SQL query to be loaded into this DAORecodsetHelper object.</param>
 /// <param name="type">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
 /// <param name="options">The DAORecordsetOptionEnum of this DAORecordsetHelper object.</param>
 /// <param name="lockType">The DAOLockTypeEnum of this DAORecordsetHelper object.</param>
 /// <param name="connection">Connection object to be use by this DAORecordsetHelper.</param>
 /// <param name="factoryName">The name of the factory to by use by this DAORecordsetHelper object (the name most exist on the configuration xml file).</param>
 /// <returns>The new DAORecordsetHelper object.</returns>
 public static DAORecordSetHelper Open(string SQLStr, DAORecordsetTypeEnum type, DAORecordsetOptionEnum options, DAOLockTypeEnum lockType, DbConnection connection, string factoryName)
 {
     DAORecordSetHelper recordSet = new DAORecordSetHelper(factoryName, type, options, lockType);
     recordSet.Open(SQLStr, connection);
     return recordSet;
 }
Example #7
0
 /// <summary>
 /// Creates a new DAORecordsetHelper object using the “factoryName”, “type”, "options" and opens it by executing the query on the “SQLstr” using the connection object provided has parameter and load all results.
 /// </summary>
 /// <param name="SQLStr">The string containing the SQL query to be loaded into this DAORecodsetHelper object.</param>
 /// <param name="type">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
 /// <param name="options">The DAORecordsetOptionEnum of this DAORecordsetHelper object.</param>
 /// <param name="connection">Connection object to be use by this DAORecordsetHelper.</param>
 /// <param name="factoryName">The name of the factory to by use by this DAORecordsetHelper object (the name most exist on the configuration xml file).</param>
 /// <returns>The new DAORecordsetHelper object.</returns>
 public static DAORecordSetHelper Open(string SQLStr, DAORecordsetTypeEnum type, DAORecordsetOptionEnum options, DbConnection connection, string factoryName)
 {
     // Type not used.
     // Options not used.
     return Open(SQLStr, connection, factoryName);
 }
Example #8
0
 /// <summary>
 /// Creates a new DAORecordSet instance using the factory specified on the “factoryName” and the configuration provided by the other parameters.
 /// </summary>
 /// <param name="factoryName">The name of the factory to by use by this DAORecordsetHelper object (the name most exist on the configuration xml file).</param>
 /// <param name="rsType">The DAORecordsetTypeEnum of this DAORecordsetHelper object.</param>
 /// <param name="rsOption">The DAORecordsetOptionEnum of this DAORecordsetHelper object.</param>
 /// <param name="lockType">The DAOLockTypeEnum of this DAORecordsetHelper object.</param>
 public DAORecordSetHelper(String factoryName, DAORecordsetTypeEnum rsType, DAORecordsetOptionEnum rsOption, DAOLockTypeEnum lockType)
     : base(factoryName)
 {
     this.daoRSType = rsType;
     this.daoRSOption = rsOption;
     this.daoLockType = lockType;
 }