runxinzhi.com
首页
百度搜索
[求助]castle多对多的分页大家都是怎么样做的?(更新)
这个是我自己做的,感觉效率很低,而且无法查询。
public
IList GetPictureByPTypeID(
string
PTypesID,
int
firstResult,
int
maxResults,
out
int
recordcount)
{
IList plist
=
pm.PType.Find(
int
.Parse(PTypesID)).Pictures;
recordcount
=
plist.Count;
return
IListPage(firstResult, maxResults, plist);
}
public
IList IListPage(
int
firstResult,
int
maxResults, IList list)
{
ArrayList tlist
=
new
ArrayList();
int
i
=
0
;
foreach
(
object
obj
in
list)
{
if
(i
>=
firstResult
&&
i
<
(firstResult+maxResults))
{
tlist.Add(obj);
}
i
++
;
}
return
tlist;
}
相关阅读:
c++ 析构函数
define 全局变量 extern
C 与 python 的随机数
WinMain function can not be oveloaderd
宽字符编码与多字节编码
windows 静态库 与 动态库
extern C 语言中
ubuntu 修改分辨率 , 虚拟机中的ubuntu联网
main(int argv, char* argc[])
数字分隔符,三位一个逗号
原文地址:https://www.cnblogs.com/nasa/p/730020.html
最新文章
js对象
http服务
Node.js网络编程
Stream文件流
shell script的基本使用.
处理数据I/O之Buffer
AJAX
c++线性结构基础
node.js的文件操作
gdal注册nsdtfDEM格式驱动配置
热门文章
vs编译问题总结
InitSpatialMetaData()速度慢的问题
gdal3.1.0+VS2017+geos+kml编译总结
python +spatialite + window 解决方案(https://www.jianshu.com/p/5bc7d8b7b429)
SCons
关于下载pyton第三方库的细节
vs2017和Qt5的字符编码问题
windows下wchar_t的问题
关于string转换为wstring问题
QT 生成的release 版本的 exe 运行时缺少 dll 文件
Copyright © 2020-2023
润新知