Getting {"error":"Null TypeMapping in Sql Tree"} from entity framework core using linq

asp.net-core entity-framework-core linq-to-entities

Question

I have this linq select statment and I am getting this erro {"error":"Null TypeMapping in Sql Tree"} back.

Ill put the code below but is there a way to get more information on what the issue is? If you need the entities let me know and Ill copy them.

regards

var query = from o in _orderDataDbContext.tblSellFlangeOrders
            join od in _orderDataDbContext.tblSellFlangeOrderDetails
            on (int?)o.Id equals od.SellFlangeOrderId
            join t in _orderDataDbContext.tblTypes
            on od.TypeId equals (int?)t.Id
            join l in _orderDataDbContext.VLegendeFlangeLengths
            on od.LengthId equals (int?)l.Id
            join g in _orderDataDbContext.VLegendeGrades
            on od.GradeId equals (int?)g.Id
            where o.Id == request._flangeOrderID
                        select new FlangeOrderDetailByPoCodeDto
                        {
                            SellFlangeOrderID = o.Id,
                            DetailID = od.Id,
                            Price = od.Price1000,
                            BF = od.Bf,
                            TypeID = t.Id,
                            Type = t.Inches1 + "x" + t.Inches2,
                            LengthID = l.Id,
                            Length = l.Length + "'" + l.OverLength + "\"",
                            GradeID = g.Id,
                            Grade = g.Grade
                        };
1
0
3/2/2020 1:57:40 PM

Popular Answer

This post was a correct answer from Ivan Stoev.

Thanks greatly Ivan.

Possible duplicate of stackoverflow.com/questions/60409797/… – Ivan Stoev

0
3/3/2020 5:18:55 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow