日期:2014-05-20 浏览次数:20816 次
return db.Library.Take(count).Where(a => a.Status==status).OrderBy(a => a.PubDate).ToList();
/// <summary>
///
/// </summary>
/// <param name="count">需要的文档数量</param>
/// <param name="status">需要文档的状态</param>
/// <returns></returns>
public static List<Library> GetUploadBooks(int count=10,int status = 0)
{
using (var db = new WEBVODEntities())
{
return db.Library.Take(count).Where(a => a.Status==status).OrderBy(a => a.PubDate).ToList();
}
}