Jump to content

  • Log In with Google      Sign In   
  • Create Account

AlanSmithee

Member Since 19 May 2011
Offline Last Active May 01 2016 01:12 PM

Posts I've Made

In Topic: read records from database with index using entity framework

18 November 2015 - 06:03 PM

As fastcall22 said.

More precisely you can apply paging using "skip take". For example:

// things are of type DbSet

var pageSize = 10;
var page = 2; // passed in from view

var pagedResult = things.AsQueryable().Where(thing => thing.IsAccesible).Skip((page - 1) * pageSize).Take(pageSize).ToArray();

In Topic: Object Library Design Pattern

12 November 2015 - 04:35 PM

Thanks for the responses about Wikipedia. What you say, and their guidelines, makes sense!

In Topic: Object Library Design Pattern

11 November 2015 - 11:09 AM

Hodgman, out of curiousity, why would you consider it wrong to put your own stuff at wikipedia? Is it unethical?

In Topic: Sorry, you do not qualify to take this survey

10 September 2015 - 04:04 PM

What the... :)

In Topic: Sorry, you do not qualify to take this survey

08 September 2015 - 10:54 AM

Its a survey that's paying Gamedev to help support the site, not a survey Gamedev is running for their own interests, as I understand it. They have a specific quota they're looking to fill.


Ya I understood that, so I wanted to help GD out, but then realized I was not in the targeted geographic.

PARTNERS