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.

Revisions

  1. chandermani revised this gist Apr 21, 2014. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions dataaccess.cs
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    //Did a ToList() to realize this query
    var planEmployees = this.DB.Query<Xhr.Data.Model.EmployeeLeavePlanView>("WHERE LeavePlanId=@0", p.Id).ToList();
    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
  2. chandermani created this gist Apr 21, 2014.
    3 changes: 3 additions & 0 deletions dataaccess.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    //Did a ToList() to realize this query
    var planEmployees = this.DB.Query<Xhr.Data.Model.EmployeeLeavePlanView>("WHERE LeavePlanId=@0", p.Id).ToList();
    // Same as it was earlier