示例#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;
 }
示例#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);
        }
示例#3
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;
 }
示例#4
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;
 }