/// <summary> /// Creates a new RDORecordSetHelper and opens it. /// </summary> /// <param name="command">The sql statement used to populate the recordset.</param> /// <param name="locktype">The lock type used by the recordset.</param> /// <param name="factoryName">The name used to identify the factory to be used to create all the necesary ADO .Net objects.</param> /// <returns>A new opened recordset.</returns> public static RDORecordSetHelper Open(DbCommand command, LockTypeConstants locktype, String factoryName) { RDORecordSetHelper result = new RDORecordSetHelper(factoryName); result.Source = command; result.LockType = locktype; result.Open(); return(result); }
/// <summary> /// Creates a new RDORecordSetHelper and opens it. /// </summary> /// <param name="SQLstr">The sql statement used to populate the recordset.</param> /// <param name="connection">The connection used to interact with the database.</param> /// <param name="locktype">The lock type used by the recordset.</param> /// <param name="factoryName">The name used to identify the factory to be used to create all the necesary ADO .Net objects.</param> /// <returns>A new opened recordset.</returns> public static RDORecordSetHelper Open(String SQLstr, DbConnection connection, LockTypeConstants locktype, String factoryName) { if (factoryName == "") { factoryName = AdoFactoryManager.Default.Name; } RDORecordSetHelper result = new RDORecordSetHelper(factoryName); result.Source = SQLstr; result.LockType = locktype; result.ActiveConnection = connection; result.Open(); return(result); }
/// <summary> /// Creates a new RDORecordSetHelper and opens it. /// </summary> /// <param name="command">The sql statement used to populate the recordset.</param> /// <param name="locktype">The lock type used by the recordset.</param> /// <param name="factoryName">The name used to identify the factory to be used to create all the necesary ADO .Net objects.</param> /// <returns>A new opened recordset.</returns> public static RDORecordSetHelper Open(DbCommand command, LockTypeConstants locktype, String factoryName) { RDORecordSetHelper result = new RDORecordSetHelper(factoryName); result.Source = command; result.LockType = locktype; result.Open(); return result; }
/// <summary> /// Creates a new RDORecordSetHelper and opens it. /// </summary> /// <param name="SQLstr">The sql statement used to populate the recordset.</param> /// <param name="connection">The connection used to interact with the database.</param> /// <param name="locktype">The lock type used by the recordset.</param> /// <param name="factoryName">The name used to identify the factory to be used to create all the necesary ADO .Net objects.</param> /// <returns>A new opened recordset.</returns> public static RDORecordSetHelper Open(String SQLstr, DbConnection connection, LockTypeConstants locktype, String factoryName) { if (factoryName == "") factoryName = AdoFactoryManager.Default.Name; RDORecordSetHelper result = new RDORecordSetHelper(factoryName); result.Source = SQLstr; result.LockType = locktype; result.ActiveConnection = connection; result.Open(); return result; }
/// <summary> /// Creates a new RDORecordSetHelper and opens it. /// </summary> /// <param name="command">The sql statement used to populate the recordset.</param> /// <param name="factoryName">The name used to identify the factory to be used to create all the necesary ADO .Net objects.</param> /// <returns>A new opened recordset.</returns> public static RDORecordSetHelper Open(DbCommand command, String factoryName) { return(RDORecordSetHelper.Open(command, LockTypeConstants.rdConcurReadOnly, factoryName)); }
/// <summary> /// Creates a new RDORecordSetHelper and opens it. /// </summary> /// <param name="SQLstr">The sql statement used to populate the recordset.</param> /// <param name="connection">The connection used to interact with the database.</param> /// <param name="factoryName">The name used to identify the factory to be used to create all the necesary ADO .Net objects.</param> /// <returns>A new opened recordset.</returns> public static RDORecordSetHelper Open(String SQLstr, DbConnection connection, String factoryName) { return(RDORecordSetHelper.Open(SQLstr, connection, LockTypeConstants.rdConcurReadOnly, factoryName)); }