zoukankan      html  css  js  c++  java
  • 总结一个DAL中写IList返回实体的方法

     晕的不总结不行,在阴沟中翻第二次船,不知道是不是自己笨,下午这个问题上浪费了时间,身边没以前的代码,注意实体类定义ArticleInfo model = new ArticleInfo();要放到while (dataReader.Read()),而不是using()下,更不是using外面,而list items是放到using()外面,好记性不如烂笔头,记记,下次要长长脑子

    Code
  • 相关阅读:
    nyoj 95 众数问题(set)
    nyoj 93 汉诺塔(三)(stack)
    hdu 1010 Tempter of the Bone
    nyoj 55 懒省事的小明(priority_queue优先队列)
    nyoj 31 5个数求最值
    poj 1256 Anagram
    next_permutation函数
    nyoj 19 擅长排列的小明(深搜,next_permutation)
    nyoj 8 一种排序(用vector,sort,不用set)
    nyoj 5 Binary String Matching(string)
  • 原文地址:https://www.cnblogs.com/sendling/p/1353098.html
Copyright © 2011-2022 走看看