Antrium A35D

Bir sonraki için en iyisini yap...

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

LINQ to Entities does not recognize the method ' ' method, and this method cannot be translated into a store expression hatası Linq sorgusunda değişken bazlı kullanmanız gerektiğini bildirir.

Hata alan kodumuz;


Where(p => p.pid == dty.pid && p.kat == kt2[katIndex + 1].konu

Hatayı çözmek için ;

string katADI = kt2[katIndex + 1].konu;

var d1 = db.daireler_.Where(p => p.pid == dty.pid && p.kat == katADI

122 Okunma | 4.04.2024 16:10

YORUMLAR

Yorum Yaz
Hüseyin ÖZKAN Yazılım Uzmanı

C#,MVC,MSSQL,Windows Forms