Hello,
From a rather simple query, when i call the ToList() method, i get the following error :
Object reference not set to an instance of an object
at Devart.Data.Linq.Provider.Query.DbMethodCallConverter.EscapeLikeText(String text, Char escape)
The query ends like this:
var result = query.Select(a => new SearchedCustomer()
{
Id = (long) a.Customer.Id,
Code = a.Customer.Code,
AccountName = a.CustomerInfo.AccName,
TaxRegNo = a.CustomerInfo.TaxRegno,
IdCardNo = a.CustomerInfo.Identity,
Balance = (decimal) a.Customer.Balance,
BalanceAge = (int) a.Customer.BalAge
});
Where SearchedCustomer is an Entity defined through Entity Developer but it has NO source and all its properties are read-only.
Please advice...