本文整理汇总了C#中DataPage.CopyStats方法的典型用法代码示例。如果您正苦于以下问题:C# DataPage.CopyStats方法的具体用法?C# DataPage.CopyStats怎么用?C# DataPage.CopyStats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataPage
的用法示例。
在下文中一共展示了DataPage.CopyStats方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetByUser
public DataPage<Microblog> GetByUser( int userId, int pageSize )
{
DataPage<MicroblogAt> list = MicroblogAt.findPage( "UserId=" + userId, pageSize );
DataPage<Microblog> blogList = new DataPage<Microblog>();
blogList.CopyStats( list );
blogList.Results = getResults( list.Results );
return blogList;
}
示例2: GetPageByTag
public DataPage<User> GetPageByTag( int tagId )
{
DataPage<UserTagShip> list = UserTagShip.findPage( "TagId=" + tagId );
DataPage<User> results = new DataPage<User>();
results.CopyStats( list );
results.Results = populateUsers( list.Results );
return results;
}
示例3: GetBlogPage
public DataPage<Microblog> GetBlogPage( int ownerId, int pageSize )
{
DataPage<MicroblogFavorite> list = GetFavoritePage( ownerId, pageSize );
List<Microblog> mlist = new List<Microblog>();
foreach (MicroblogFavorite mf in list.Results) {
mlist.Add( mf.Microblog );
}
DataPage<Microblog> results = new DataPage<Microblog>();
results.CopyStats( list );
results.Results = mlist;
return results;
}
示例4: populateUsers
private DataPage<User> populateUsers( int userId, int pageSize, String condition )
{
DataPage<FriendShip> list = db.findPage<FriendShip>( condition, pageSize );
DataPage<User> d = new DataPage<User>();
List<User> friends = populateUser( list.Results, userId );
d.Results = friends;
d.CopyStats( list );
return d;
}
示例5: GetFollowingPage
public virtual DataPage<User> GetFollowingPage( int userId, int pageSize )
{
DataPage<Follower> followers = db.findPage<Follower>( "User.Id=" + userId, pageSize );
DataPage<User> list = new DataPage<User>();
list.Results = populateTarget( followers.Results );
list.CopyStats( followers );
return list;
}
示例6: GetFollowersPage
public virtual DataPage<User> GetFollowersPage( int targetId )
{
DataPage<Follower> followers = db.findPage<Follower>( "Target.Id=" + targetId );
DataPage<User> list = new DataPage<User>();
list.Results = populateUser( followers.Results );
list.CopyStats( followers );
return list;
}
示例7: GetGroupByUser
public virtual DataPage<Group> GetGroupByUser( int userId )
{
DataPage<GroupUser> lists = db.findPage<GroupUser>( myGroupCondition( userId ) + " order by LastUpdateTime desc" );
List<Group> groups = populate( lists.Results );
DataPage<Group> results = new DataPage<Group>();
results.CopyStats( lists );
results.Results = groups;
return results;
}