Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return
- from record in numbers
- .Zip(cadastralCosts, (number, cost) => new { Number = number, Cost = cost })
- .Zip(specificCadastralCosts, (pair, spetialCost) => new { pair.Number, pair.Cost, SpecificCost = spetialCost })
- where record.Cost.IsDouble() && record.SpecificCost.IsDouble()
- let cadastralNumber = new CadastralNumber(record.Number.AsString())
- let cadastralCost = record.Cost.AsOptionDouble().GetValueOrDefault()
- let cadastralSpecificCost = record.SpecificCost.AsOptionDouble().GetValueOrDefault()
- select new RealEstate
- {
- CadastralNumber = cadastralNumber,
- CadastralCost = cadastralCost,
- CadastralCostUnit = _costUnit,
- SpecificCadastralCost = cadastralSpecificCost,
- SpecificCadastralCostUnit = _specificCostUnit
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement