خرید بک لینک

Vote count: 0

I must to execute this expression:

var CAP = modelCap.AZCPC00F.Where(x => x.CPCVER == CPCVER && x.CPCNAR == CPCNAR && x.CPCCAP == CPCCAP)
                               .Where(x => XXXXKG == 0 ? true : Convert.ToInt64(Convert.ToDouble(x.CPCLKG)) < XXXXKG)
                               .Where(x => XXXXMC == 0 ? true : Convert.ToInt64(Convert.ToDouble(x.CPCLMC)) < XXXXMC)
                               .Where(x => XXXXFD == "N" ? true : x.CPCZFD == XXXXFD).FirstOrDefault();

When I try to execute this I have an exception on the inteal conversion of x.CPCLKG. The exception is:

LINQ to Entities does not recognize the method 'int64' method, and this method caot be translated into a store expression.

I know that the problem is in the conversion but how can i use this function?

An example of x.CPCLKG is 9.9999 and is an nChar character type.

Thanks to all

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 19 فروردين 1395 ساعت: 5:28

صفحه بندی