Created
April 21, 2014 04:39
-
-
Save chandermani/11132420 to your computer and use it in GitHub Desktop.
Multiple queries with PetaPoco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var planEmployees = this.DB | |
.Query<Xhr.Data.Model.EmployeeLeavePlanView>("WHERE LeavePlanId=@0", p.Id); | |
planEmployees.ForEach(e => | |
{ | |
var creditHistory = this.LeavesService.GetCredits(e.ID); | |
var newCredits = creditCalculator.CalculateNewCredits(processStartTime, creditHistory); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment