My apologies Otis, I was meaning to only follow up on the original message in this thread.
We have the following statement:
string certFileName = (from cc in metaData.ClaimedCredit
join c in metaData.Credit on cc.CreditId equals c.Id
join cert in metaData.Certificate on c.CertificateId equals cert.Id
where cc.Id == this.View.SelectedClaimedCreditId
select cert.Filename).First();
That statement causes the exception Unable to cast object of type 'System.Collections.Generic.List1[System.String]' to type 'System.String'. at SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProProviderBase.System.Linq.IQueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.First[TSource](IQueryable
1 source) ..., (just like the original message in the thread).
To overcome this runtime error, I have to do one of the suggestions in this thread:
workaround 1:
string certFileName = (from cc in metaData.ClaimedCredit
join c in metaData.Credit on cc.CreditId equals c.Id
join cert in metaData.Certificate on c.CertificateId equals cert.Id
where cc.Id == this.View.SelectedClaimedCreditId
select new { cert.Filename}).First().Filename;
or workaround 2:
string certFileName = (from cc in metaData.ClaimedCredit
join c in metaData.Credit on cc.CreditId equals c.Id
join cert in metaData.Certificate on c.CertificateId equals cert.Id
where cc.Id == this.View.SelectedClaimedCreditId
select cert.Filename).ToArray().First();
Since I noticed this scenario was already posted on the forum, I was just wondering if a fix was on a to-do list for an upcoming release?
Version Info:
SD.LLBLGen.Pro.LinqSupportClasses.NET35 = 2.6.08.1114
SD.LLBLGen.Pro.ORMSupportClasses.NET20 = 2.6.08.1013
Please let me know if you need more information.
Thanks!