User.getPosts pageouter optimization

main
Inga 🏳‍🌈 13 years ago
parent 2014dd6e0c
commit 17020218e8
  1. 1
      FLocal.Common/dataobjects/User.cs

@ -232,6 +232,7 @@ namespace FLocal.Common.dataobjects {
} }
public IEnumerable<Post> getPosts(Diapasone diapasone, bool isAscending) { public IEnumerable<Post> getPosts(Diapasone diapasone, bool isAscending) {
diapasone.total = this.totalPosts;
return Post.LoadByIds( return Post.LoadByIds(
from stringId in Config.instance.mainConnection.LoadIdsByConditions( from stringId in Config.instance.mainConnection.LoadIdsByConditions(
Post.TableSpec.instance, Post.TableSpec.instance,

Loading…
Cancel
Save