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