Exemplo n.º 1
0
 public List <T> CopyDataReaderToObjectList <T>(string aCommandString, DataParameter aSqlParameter, CommandType aCommandType, bool doNotCloseDataReader = false)
 {
     return(CopyDataReaderToObjectList <T>(GetSqlDataReader(aCommandString, aSqlParameter, aCommandType), doNotCloseDataReader));
 }
Exemplo n.º 2
0
        public object GetScalarValue(string aCommandString, CommandType aCommandType, DataParameter aSqlParameter)
        {
            IList <DataParameter> sqlParam = new List <DataParameter>();

            sqlParam.Add(aSqlParameter);
            return(GetScalarValue(aCommandString, sqlParam, aCommandType));
        }
Exemplo n.º 3
0
        public DataListItem GetDataListItemSingleRow(string aCommandString, DataParameter aDataparameter, CommandType aCommandType)
        {
            SqlDataReader _dataReader = GetSqlDataReader(aCommandString, aDataparameter, aCommandType);

            return(GetDataListItemSingleRow(_dataReader));
        }
Exemplo n.º 4
0
 public DataTable GetDataTable(string aCommandString, DataParameter aSqlParameter, CommandType aCommandType)
 {
     return(GetDataSet(aCommandString, aSqlParameter, aCommandType).Tables[0]);
 }
Exemplo n.º 5
0
 public SqlDataAdapter GetSqlDataAdapter(string aCommandString, DataParameter aSqlParameter, CommandType aCommandType)
 {
     _sqlCommand = GetCommandObject(aCommandString, aCommandType, aSqlParameter);
     return(new SqlDataAdapter(_sqlCommand));
 }
Exemplo n.º 6
0
 public SqlDataReader GetSqlDataReader(string aCommandString, DataParameter aSqlParameter)
 {
     return(GetSqlDataReader(aCommandString, aSqlParameter, CommandType.Text));
 }
Exemplo n.º 7
0
        public SqlCommand GetCommandObject(string aCommandString, CommandType aCommandType, DataParameter aSqlParameter)
        {
            List <DataParameter> sqlParam = new List <DataParameter>();

            sqlParam.Add(aSqlParameter);
            return(GetCommandObject(aCommandString, aCommandType, sqlParam));
        }
Exemplo n.º 8
0
 public SqlCommand GetCommandObject(string aCommandString, DataParameter aSqlParameter)
 {
     return(GetCommandObject(aCommandString, CommandType.Text, aSqlParameter));
 }