igor-tkachev/bltoolkit — Issue #72: AllowMultipleQuery error
Author: stsrki
Created: 2012-02-02 18:28:31+00:00
State: open

Hi,

Just migrated from BLT 4.1.6 to 4.1.8 and now I have problem with multiple queries. It throws an error "Multiple queries are not allowed. Set the 'BLToolkit.Common.Configuration.Linq.AllowMultipleQuery' flag to 'true' to allow multiple queries.".
After I set the AllowMultipleQuery flag to true, it throws me another error "No coercion operator is defined between types 'System.String' and 'System.Char'.".

the query looks like this

return ( from p in db.Poduzeca
where p.PoduzecaID == iPoduzecaID
select new
{
p.Sifra,
p.Naziv,
ZiroRacun = ( from zrp in db.ZiroRacuniPoduzeca.Where( x => x.PoduzecaID == p.PoduzecaID )
from ban in db.Banke.Where( x => x.BankeID == zrp.BankeID )
select ban.VodeciBroj + "-" + zrp.BrojRacuna ).FirstOrDefault(),
} ).ToDataTable();

Sorry it's not translated. If you need it I can create some test tables translated in english.
Anyway this previous code was working in the 4.1.6 version.