Dim payorProvidersList = (From pp In payorProviders
Group Join p In accPayors On p.PayorCode Equals pp.PayorCode Into gpPP = Group From p In gpPP.DefaultIfEmpty()
Group Join hpc In hipaaPayorConnectors On hpc.ConnectorId Equals pp.ConnectorID And hpc.PayorCode Equals pp.PayorCode And hpc.TransactionType Equals pp.TransactionType Into gpHPC = Group From hpc In gpHPC.DefaultIfEmpty()
Select New PayorProvidersInfo With
{
.ID = pp.ID,
.PayorCode = pp.PayorCode,
.ProviderId = pp.ProviderId,
.CreatedBy = pp.CreatedBy,
.CreatedDate = pp.CreatedDate,
.UpdatedBy = pp.UpdatedBy,
.UpdatedDate = pp.UpdatedDate,
.ConnectorID = pp.ConnectorID,
.NPI = pp.NPI,
.Order = hpc.Order,
.TransactionType = pp.TransactionType,
.PayorName = If(p IsNot Nothing AndAlso p.PayorName IsNot Nothing, p.PayorName, "Unknown"),
.EmdeonPayorName = If(p IsNot Nothing AndAlso p.EmdeonPayorName IsNot Nothing, p.EmdeonPayorName, "Unknown")}).ToList()
答案 0 :(得分:0)
将hpc.ConnectorId
替换为If(hpc.ConnectorId, 0)
。
修改强>
根据您的评论,您的问题不是整数字段,而是hpc
对象本身。
尝试将hpc.ConnectorId
替换为If(hpc is nothing, 0,hpc.ConnectorId)