Hi Team,
I am getting below error when i trying to fetch data from database entity.
1) Inner Exception :
The multi-part identifier "dbo.tb_DealInsurance.dealnum" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance.dealnum" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance.FreeTradeZoneClass" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance.BusinessClass" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance.IsRegulation41" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance._sys_CreatedBy" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance._sys_CreatedDt" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance._sys_ModifiedBy" could not be bound.
The multi-part identifier "dbo.tb_DealInsurance._sys_ModifiedDt" could not be bound.
2) Query generated :
Query: SELECT DISTINCT [dbo].[tb_DealInsurance].[dealnum] AS [Dealnum], [dbo].[tb_DealInsurance].[FreeTradeZoneClass], [dbo].[tb_DealInsurance].[BusinessClass], [dbo].[tb_DealInsurance].[IsRegulation41] AS [Regulation41], [dbo].[tb_DealInsurance].[_sys_CreatedBy] AS [SysCreatedBy], [dbo].[tb_DealInsurance].[_sys_CreatedDt] AS [SysCreatedDt], [dbo].[tb_DealInsurance].[_sys_ModifiedBy] AS [SysModifiedBy], [dbo].[tb_DealInsurance].[_sys_ModifiedDt] AS [SysModifiedDt] FROM ([dbo].[tbl_deals] LEFT JOIN [dbo].[tb_deal_pipeline] ON [dbo].[tbl_deals].[dealnum]=[dbo].[tb_deal_pipeline].[DealNum]) WHERE ( [dbo].[tb_DealInsurance].[dealnum] = @p1)
Parameter: @p1 : Int32. Length: 0. Precision: 10. Scale: 0. Direction: Input. Value: 5144560.
Code base :
var dealInsuranceEntities = new EntityCollection<DealInsuranceEntity>();
m_filter.PredicateExpression.Clear();
m_filter.PredicateExpression.Add(DealInsuranceFields.Dealnum == dealEntity.DealNum);
m_db.FetchEntityCollection(dealInsuranceEntities, m_filter); --> Getting error on this line.
Can you please help on this issue resolve.