please help me What Should I do with this Error in this Code:
LINQ to Entities does not recognize the method 'System.String PadLeft(Int32)' method, and this method cannot be translated into a store expression.
var bookImagePage = (from bbs in LibCms.Books
join bbp in LibCms.BookPages on bbs.BookID equals bbp.BookID
select new
{
bbs.BookID,
bbp.VolumeNum,
bbs.AutolID,
bbp.PageNum,
a = bbs.AutoID.PadLeft(5, '0') + bbp.PageNo.PadLeft(4, '0')
}).Distinct().ToList();