0

次のようなクエリ内の値を変更するにはどうすればよいですか。

        return (from cust in entities.vw_WebCustomer
                where cust.CorporationId == token.CorporationId &&
                      cust.Branch == branch &&
                      cust.AccountNumber == accountnumber
                select new CustomerRequest
                         {
                           AccountId = cust.AccountId,
                           AccountNumber = cust.AccountNumber,
                           AreaCode = cust.AreaCode,
                           Branch = cust.Branch,
                           BudgetBalance = (decimal) cust.BudgetBalance,
                           BudgetRate = (decimal) cust.BudgetRate,
                           CareOf = cust.CareOf,
                           City = cust.City,
                           CurrentBalance = (decimal) cust.CurrentBalance,
                           CurrentTankPercentage = (decimal) cust.PercentFull, 
};

cust.PercentFull がゼロ未満の場合、CurrentTankPercentage の値をゼロにチェックしたいと考えています。

変更するには分割する必要がありますか?

4

2 に答える 2