Posted By

heathbo on 03/28/15


Versions (?)

VB.Net: Lambda

 / Published in: VB.NET

All of the variables (Dim) must be Type set before any Lamda will work.

Essentially, this is returning an IList of PriceAdjustmentReasonModels where PriceAdjustmentReasonModels.PriceAdjustmentTransactionTypeId = 3

  1. Dim pricingServiceFacade As PricingServiceFacade = New PricingServiceFacade()
  2. Dim priceAdjustmentReasonData As IList(of PriceAdjustmentReasonModel) = pricingServiceFacade.GetPriceAdjustmentReasons()
  4. priceAdjustmentReasonData.Where(Function(par) par.PriceAdjustmentTransactionTypeId = 3)

Report this snippet  

You need to login to post a comment.