Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EF5 and DB2 9.1. Boolean undefined type error

I have a WPF app that uses EF5 to query a DB2 9.1 mainframe database... Whenever I try to do something like the following, I get an error saying that "BOOLEAN" is an undefined type.

var cc = contents.Select(x => x.NDC).ToList();
var sched = (from s in ctx.Query<Data.Entities.DrugSched>()
                                 where s.State == App.State && cc.Contains(s.NDC)
                                 select s).ToList();

So DB2 apparently doesn't have a bool type... and It doesn't like the List.Contains() function. I can break this query up and convert the first part to a list of objects and query that with the Contains function... but that's a crappy solution. Anyone have a better idea?

like image 684
Sam Avatar asked Dec 19 '25 12:12

Sam


1 Answers

We use DB2 10.5 on Mainframe, Booleans are not supported.

like image 168
Shiraz Bhaiji Avatar answered Dec 21 '25 04:12

Shiraz Bhaiji



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!