Exception in DbMethodCallConverter.EscapeLikeText function

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Exception in DbMethodCallConverter.EscapeLikeText function

Post by crazypit » Wed 24 Jun 2009 07:32

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...

crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Post by crazypit » Wed 24 Jun 2009 07:42

the last entry in the call stack is this:
Devart.Data.Linq.dll!Devart.Data.Linq.Provider.Query.DbMethodCallConverter.EscapeLikeText(string text = null, char escape = '~') + 0x9 bytes

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 24 Jun 2009 08:35

This problem is already fixed. Look forward to the next build.

Post Reply