DLL层调用:

                List<BookInfo> tupleList = new List<BookInfo>();
                using (IDataReader reader = this.AdoHelper.ExecuteReader(this.ConnectionString, CommandType.StoredProcedure, "FN_VOTEBOOKIDNAME_GET", paramArray))
                {
                    while (reader.Read())
                    {
                        BookInfo tuple = new BookInfo();
                        tuple.BookId = Field.GetInt32(reader, "BookId");
                        tuple.BookName = Field.GetString(reader, "bookname");
                        tupleList.Add(tuple);
                    }
                }
                return tupleList;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2021-12-18
  • 2021-09-02
  • 2022-02-13
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案