Skip to content

Instantly share code, notes, and snippets.

@chandermani
Created April 21, 2014 04:47
Show Gist options
  • Select an option

  • Save chandermani/11132531 to your computer and use it in GitHub Desktop.

Select an option

Save chandermani/11132531 to your computer and use it in GitHub Desktop.
Fix PetaPoco DataReader error
var planEmployees = this.DB
.Query<Xhr.Data.Model.EmployeeLeavePlanView>("WHERE LeavePlanId=@0", p.Id)
.ToList(); //Did a ToList() to realize this query
// Same as it was earlier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment